Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- add(int, E) - Method in class org.sejda.commons.collection.CircularLinkedList
- add(E) - Method in class org.sejda.commons.collection.CircularLinkedList
- add(E) - Method in class org.sejda.commons.collection.NullSafeSet
-
Adds the input element if it's not null.
- addAll(int, Collection<? extends E>) - Method in class org.sejda.commons.collection.CircularLinkedList
- addAll(Collection<? extends E>) - Method in class org.sejda.commons.collection.CircularLinkedList
- addAll(Collection<? extends E>) - Method in class org.sejda.commons.collection.NullSafeSet
- addBuffer(int) - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Create a new buffer and store it in the LinkedList
- addFirst(E) - Method in class org.sejda.commons.collection.CircularLinkedList
- addLast(E) - Method in class org.sejda.commons.collection.CircularLinkedList
- addLookupEntry(I, I) - Method in class org.sejda.commons.LookupTable
-
Adds a lookup entry.
- alreadyBufferedSize - Variable in class org.sejda.commons.FastByteArrayOutputStream
- applyOnGive - Variable in class org.sejda.commons.Pool
- assertIsTrue(Boolean, String) - Static method in class org.sejda.commons.FastByteArrayOutputStream
- asUnicodes(String) - Static method in class org.sejda.commons.util.StringUtils
- available() - Method in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
B
- basename(File) - Static method in class org.sejda.commons.util.NumericalSortFilenameComparator
- BIG_INT_COMPARATOR - Static variable in class org.sejda.commons.util.NumericalSortFilenameComparator
- borrow() - Method in class org.sejda.commons.Pool
- buffers - Variable in class org.sejda.commons.FastByteArrayOutputStream
- buffersIterator - Variable in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
C
- CircularLinkedList<E> - Class in org.sejda.commons.collection
-
A
LinkedListwith size constraints. - CircularLinkedList(int) - Constructor for class org.sejda.commons.collection.CircularLinkedList
- clear() - Method in class org.sejda.commons.collection.ListValueMap
-
Removes all the elements form the map
- clear() - Method in class org.sejda.commons.collection.NullSafeSet
- clear() - Method in class org.sejda.commons.LookupTable
- close() - Method in class org.sejda.commons.FastByteArrayOutputStream
- close(Closeable) - Static method in class org.sejda.commons.util.IOUtils
-
Null safe close of the given
Closeable. - closed - Variable in class org.sejda.commons.FastByteArrayOutputStream
- closeQuietly(Closeable) - Static method in class org.sejda.commons.util.IOUtils
-
Null safe close of the given
Closeablesuppressing any exception. - closeQuietly(Closeable, Consumer<IOException>) - Static method in class org.sejda.commons.util.IOUtils
-
Null safe close of the given
Closeablehanding the potential exception to the given consumer - compare(File, File) - Method in class org.sejda.commons.util.NumericalSortFilenameComparator
- contains(Object) - Method in class org.sejda.commons.collection.NullSafeSet
- containsAll(Collection<?>) - Method in class org.sejda.commons.collection.NullSafeSet
- copy(InputStream, OutputStream) - Static method in class org.sejda.commons.util.IOUtils
-
Copy the input stream data to the output stream
- currentBuffer - Variable in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- currentBufferLength - Variable in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
D
- DEFAULT_BLOCK_SIZE - Static variable in class org.sejda.commons.FastByteArrayOutputStream
- delegate - Variable in class org.sejda.commons.collection.NullSafeSet
- difference(String, String) - Static method in class org.sejda.commons.util.StringUtils
- DIGITS_EXTRACTOR - Static variable in class org.sejda.commons.util.NumericalSortFilenameComparator
E
- either(Function<? super A, ? extends C>, Function<? super B, ? extends C>) - Method in class org.sejda.commons.Either
- Either<A,
B> - Class in org.sejda.commons - Either() - Constructor for class org.sejda.commons.Either
- equals(Object) - Method in class org.sejda.commons.collection.NullSafeSet
F
- fallback - Variable in class org.sejda.commons.util.NumericalSortFilenameComparator
- FastByteArrayInputStream(FastByteArrayOutputStream) - Constructor for class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
-
Create a new
FastByteArrayOutputStreamInputStreambacked by the givenFastByteArrayOutputStream. - fastByteArrayOutputStream - Variable in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- FastByteArrayOutputStream - Class in org.sejda.commons
-
A speedy alternative to
ByteArrayOutputStream. - FastByteArrayOutputStream() - Constructor for class org.sejda.commons.FastByteArrayOutputStream
-
Create a new
FastByteArrayOutputStreamwith the default initial capacity of 256 bytes. - FastByteArrayOutputStream(int) - Constructor for class org.sejda.commons.FastByteArrayOutputStream
-
Create a new
FastByteArrayOutputStreamwith the specified initial capacity. - FastByteArrayOutputStream.FastByteArrayInputStream - Class in org.sejda.commons
-
An implementation of
InputStreamthat reads from a givenFastByteArrayOutputStream. - findField(Class<?>, String) - Static method in class org.sejda.commons.util.ReflectionUtils
- findField(Class<?>, String, Class<?>) - Static method in class org.sejda.commons.util.ReflectionUtils
- first() - Method in class org.sejda.commons.LookupTable
- fromLeft() - Method in class org.sejda.commons.Either
- fromRight() - Method in class org.sejda.commons.Either
G
- get(K) - Method in class org.sejda.commons.collection.ListValueMap
-
A null safe getter for the given key.
- getDeclaredFields(Class<?>) - Static method in class org.sejda.commons.util.ReflectionUtils
-
This variant retrieves
Class.getDeclaredFields()from a local cache in order to avoid the JVM's SecurityManager check and defensive array copying. - getField(Field, Object) - Static method in class org.sejda.commons.util.ReflectionUtils
-
Get the field represented by the supplied
field objecton the specifiedtarget object. - getInputStream() - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Get an
InputStreamto retrieve the data in this OutputStream. - getMaxCapacity() - Method in class org.sejda.commons.collection.CircularLinkedList
- give(T) - Method in class org.sejda.commons.Pool
-
Returns the object to the pool
H
- handleInvocationTargetException(InvocationTargetException) - Static method in class org.sejda.commons.util.ReflectionUtils
-
Handle the given invocation target exception.
- handleReflectionException(Exception) - Static method in class org.sejda.commons.util.ReflectionUtils
-
Handle the given reflection exception.
- hashCode() - Method in class org.sejda.commons.collection.NullSafeSet
- hasLookupFor(I) - Method in class org.sejda.commons.LookupTable
- houseKeep() - Method in class org.sejda.commons.collection.CircularLinkedList
-
Makes the list fit its limits by removing last items in cases where the list might have exceeded its limits.
I
- index - Variable in class org.sejda.commons.FastByteArrayOutputStream
- inferParameterClass(Class, String) - Static method in class org.sejda.commons.util.ReflectionUtils
-
Given a concrete class and a method name, it tries to infer the Class of the first parameter of the method
- initialBlockSize - Variable in class org.sejda.commons.FastByteArrayOutputStream
- IOUtils - Class in org.sejda.commons.util
-
Utility class with I/O related static methods
- IOUtils() - Constructor for class org.sejda.commons.util.IOUtils
- isEmpty() - Method in class org.sejda.commons.collection.NullSafeSet
- isEmpty() - Method in class org.sejda.commons.LookupTable
- isEmpty(CharSequence) - Static method in class org.sejda.commons.util.StringUtils
- isFull() - Method in class org.sejda.commons.collection.CircularLinkedList
- isNotEmpty(CharSequence) - Static method in class org.sejda.commons.util.StringUtils
- iterator() - Method in class org.sejda.commons.collection.NullSafeSet
K
- keys() - Method in class org.sejda.commons.LookupTable
L
- left(A) - Static method in class org.sejda.commons.Either
- ListValueMap<K,
V> - Class in org.sejda.commons.collection -
Map where the elements added to the same key are enqueued in a List.
- ListValueMap() - Constructor for class org.sejda.commons.collection.ListValueMap
- LOG - Static variable in class org.sejda.commons.Pool
- LOG - Static variable in class org.sejda.commons.util.IOUtils
- lookup(I) - Method in class org.sejda.commons.LookupTable
-
Looks up the item that correspond to the given one
- LookupTable<I> - Class in org.sejda.commons
-
Component that allows to set up a lookup relation between items of the same type.
- LookupTable() - Constructor for class org.sejda.commons.LookupTable
- LRUMap<K,
V> - Class in org.sejda.commons.collection -
Fixed size
Mapimplementation removing the least recently used element whenMap.put(Object, Object)is called. - LRUMap(int) - Constructor for class org.sejda.commons.collection.LRUMap
M
- makeAccessible(Field) - Static method in class org.sejda.commons.util.ReflectionUtils
-
Make the given field accessible, explicitly setting it accessible if necessary.
- makeRoom() - Method in class org.sejda.commons.collection.CircularLinkedList
-
Makes a space available if the list is already full.
- map - Variable in class org.sejda.commons.collection.ListValueMap
- MATCHER_COMPARATOR - Static variable in class org.sejda.commons.util.NumericalSortFilenameComparator
- MAX_BLOCK_SIZE - Static variable in class org.sejda.commons.FastByteArrayOutputStream
- maxCapacity - Variable in class org.sejda.commons.collection.CircularLinkedList
- maxCapacity - Variable in class org.sejda.commons.collection.LRUMap
N
- nextBlockSize - Variable in class org.sejda.commons.FastByteArrayOutputStream
- nextIndexInCurrentBuffer - Variable in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- nextPowerOf2(int) - Static method in class org.sejda.commons.FastByteArrayOutputStream
-
Get the next power of 2 of a number (ex, the next power of 2 of 119 is 128).
- normalizeLineEndings(String) - Static method in class org.sejda.commons.util.StringUtils
- normalizeWhitespace(String) - Static method in class org.sejda.commons.util.StringUtils
- NullSafeSet<E> - Class in org.sejda.commons.collection
-
LinkedHashSetwrapper disallowing null elements. - NullSafeSet() - Constructor for class org.sejda.commons.collection.NullSafeSet
- NullSafeSet(Set<E>) - Constructor for class org.sejda.commons.collection.NullSafeSet
- NumericalSortFilenameComparator - Class in org.sejda.commons.util
-
Comparator for filenames that performs a numerical sort if the file names start or end with digits.
- NumericalSortFilenameComparator() - Constructor for class org.sejda.commons.util.NumericalSortFilenameComparator
-
Comparator performing numerical sort with fallback to file name case-insensitive compare in case numerical sort fails
- NumericalSortFilenameComparator(Comparator<File>) - Constructor for class org.sejda.commons.util.NumericalSortFilenameComparator
O
- oldToNew - Variable in class org.sejda.commons.LookupTable
- onGive(Consumer<T>) - Method in class org.sejda.commons.Pool
-
Configure the pool to apply the given consumer to returned objects.
- org.sejda.commons - module org.sejda.commons
- org.sejda.commons - package org.sejda.commons
- org.sejda.commons.collection - package org.sejda.commons.collection
- org.sejda.commons.util - package org.sejda.commons.util
P
- PATTERN - Static variable in class org.sejda.commons.util.NumericalSortFilenameComparator
- pool - Variable in class org.sejda.commons.Pool
- Pool<T> - Class in org.sejda.commons
-
A simple object pool implementation.
- Pool(Supplier<T>, int) - Constructor for class org.sejda.commons.Pool
- put(K, V) - Method in class org.sejda.commons.collection.ListValueMap
-
Adds the input value to the
Listassociated to the input key
R
- read() - Method in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- read(byte[]) - Method in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- read(byte[], int, int) - Method in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- ReflectionUtils - Class in org.sejda.commons.util
-
Simple utility class for working with the reflection API and handling reflection exceptions.
- ReflectionUtils() - Constructor for class org.sejda.commons.util.ReflectionUtils
- remove(Object) - Method in class org.sejda.commons.collection.NullSafeSet
- remove(K, V) - Method in class org.sejda.commons.collection.ListValueMap
-
Removes the input value from the
Listassociated to the input key. - removeAll(Collection<?>) - Method in class org.sejda.commons.collection.NullSafeSet
- removeEldestEntry(Map.Entry<K, V>) - Method in class org.sejda.commons.collection.LRUMap
- require(boolean, Supplier<? extends E>) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws the Exception supplied by the supplier in case the condition is not met
- requireArg(boolean, String) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws an
IllegalArgumentExceptionif the given condition is not met - requireIOCondition(boolean, String) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws an
IOExceptionif the given condition is not met - requireNotBlank(String, String) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws an
IllegalArgumentExceptionif the given string is blank - requireNotNegative(int) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws an
IllegalArgumentExceptionif the input value is a negative integer - requireNotNullArg(Object, String) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws an
IllegalArgumentExceptionif the given argument is null - requireState(boolean, String) - Static method in class org.sejda.commons.util.RequireUtils
-
Throws an
IllegalStateExceptionif the given condition is not met - RequireUtils - Class in org.sejda.commons.util
-
Utility methods to check parameters and conditions validity.
- RequireUtils() - Constructor for class org.sejda.commons.util.RequireUtils
- reset() - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Reset the contents of this
FastByteArrayOutputStream. - resize(int) - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Resize the internal buffer size to a specified capacity.
- retainAll(Collection<?>) - Method in class org.sejda.commons.collection.NullSafeSet
- rethrowRuntimeException(Throwable) - Static method in class org.sejda.commons.util.ReflectionUtils
-
Rethrow the given
exception, which is presumably the target exception of anInvocationTargetException. - right(B) - Static method in class org.sejda.commons.Either
S
- setMaxCapacity(int) - Method in class org.sejda.commons.collection.CircularLinkedList
- size() - Method in class org.sejda.commons.collection.ListValueMap
- size() - Method in class org.sejda.commons.collection.NullSafeSet
- size() - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Return the number of bytes stored in this
FastByteArrayOutputStream. - skip(long) - Method in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
- STRING_COMPARATOR - Static variable in class org.sejda.commons.util.NumericalSortFilenameComparator
- StringUtils - Class in org.sejda.commons.util
- StringUtils() - Constructor for class org.sejda.commons.util.StringUtils
- supplier - Variable in class org.sejda.commons.Pool
T
- toArray() - Method in class org.sejda.commons.collection.NullSafeSet
- toArray(T[]) - Method in class org.sejda.commons.collection.NullSafeSet
- toByteArray() - Method in class org.sejda.commons.FastByteArrayOutputStream
- toByteArray(InputStream) - Static method in class org.sejda.commons.util.IOUtils
- toByteArraySafe() - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Creates a newly allocated byte array.
- toByteArrayUnsafe() - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Convert the stream's data to a byte array and return the byte array.
- toString() - Method in class org.sejda.commons.collection.NullSafeSet
- toString() - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Convert the buffer's contents into a string decoding bytes using the platform's default character set.
- totalBytesRead - Variable in class org.sejda.commons.FastByteArrayOutputStream.FastByteArrayInputStream
V
- values() - Method in class org.sejda.commons.LookupTable
W
- write(byte[], int, int) - Method in class org.sejda.commons.FastByteArrayOutputStream
- write(int) - Method in class org.sejda.commons.FastByteArrayOutputStream
- writeTo(OutputStream) - Method in class org.sejda.commons.FastByteArrayOutputStream
-
Write the buffers content to the given OutputStream.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form