Skip navigation links
A B C D F G I M O P R S T U V W 

A

asInputStream() - Method in interface org.sejda.io.SeekableSource
Creates an InputStream from this SeekableSource.

B

back(long) - Method in interface org.sejda.io.SeekableSource
Skips backward the given number of bytes moving back the source position
back() - Method in interface org.sejda.io.SeekableSource
Skips backward moving back the source position of one byte
BaseSeekableSource - Class in org.sejda.io
Abstract SeekableSource that provides base functionalities common to all the SeekableSources.
BaseSeekableSource(String) - Constructor for class org.sejda.io.BaseSeekableSource
 
BufferedCountingChannelWriter - Class in org.sejda.io
Component providing methods to write to a CountingWritableByteChannel.
BufferedCountingChannelWriter(CountingWritableByteChannel) - Constructor for class org.sejda.io.BufferedCountingChannelWriter
 
BufferedSeekableSource - Class in org.sejda.io
SeekableSource wrapping an existing one and providing buffered read.
BufferedSeekableSource(SeekableSource) - Constructor for class org.sejda.io.BufferedSeekableSource
 
ByteArraySeekableSource - Class in org.sejda.io
A byte array based SeekableSource with a max size of 2GB.
ByteArraySeekableSource(byte[]) - Constructor for class org.sejda.io.ByteArraySeekableSource
 

C

close() - Method in class org.sejda.io.BaseSeekableSource
 
close() - Method in class org.sejda.io.BufferedCountingChannelWriter
 
close() - Method in class org.sejda.io.BufferedSeekableSource
 
close() - Method in class org.sejda.io.ByteArraySeekableSource
 
close() - Method in class org.sejda.io.CountingWritableByteChannel
 
close() - Method in class org.sejda.io.DevNullWritableByteChannel
 
close() - Method in class org.sejda.io.FastByteArrayOutputStream
 
close() - Method in class org.sejda.io.FileChannelSeekableSource
 
close() - Method in class org.sejda.io.MemoryMappedSeekableSource
 
close() - Method in class org.sejda.io.ThreadBoundCopiesSupplier
 
close(Closeable) - Static method in class org.sejda.util.IOUtils
Null safe close of the given Closeable.
closeQuietly(Closeable) - Static method in class org.sejda.util.IOUtils
Null safe close of the given Closeable suppressing any exception.
count() - Method in class org.sejda.io.CountingWritableByteChannel
 
CountingWritableByteChannel - Class in org.sejda.io
A WritableByteChannel that keeps track of the number of written bytes
CountingWritableByteChannel(WritableByteChannel) - Constructor for class org.sejda.io.CountingWritableByteChannel
 

D

DevNullWritableByteChannel - Class in org.sejda.io
WritableByteChannel that does nothing .
DevNullWritableByteChannel() - Constructor for class org.sejda.io.DevNullWritableByteChannel
 
DISABLE_MEMORY_MAPPED_PROPERTY - Static variable in class org.sejda.io.SeekableSources
Threshold size in bytes where the SeekableSources method will switch to MemoryMappedSeekableSource.MemoryMappedSeekableSource(File)

F

FastByteArrayOutputStream - Class in org.sejda.io
A speedy alternative to ByteArrayOutputStream.
FastByteArrayOutputStream() - Constructor for class org.sejda.io.FastByteArrayOutputStream
Create a new FastByteArrayOutputStream with the default initial capacity of 256 bytes.
FastByteArrayOutputStream(int) - Constructor for class org.sejda.io.FastByteArrayOutputStream
Create a new FastByteArrayOutputStream with the specified initial capacity.
FileChannelSeekableSource - Class in org.sejda.io
A SeekableSource implementation based on FileChannel.
FileChannelSeekableSource(File) - Constructor for class org.sejda.io.FileChannelSeekableSource
 
flush() - Method in class org.sejda.io.BufferedCountingChannelWriter
Flush the buffer
forward(long) - Method in interface org.sejda.io.SeekableSource
Skips the given number of bytes moving forward the source position
from(WritableByteChannel) - Static method in class org.sejda.io.CountingWritableByteChannel
Static factory method to create a CountingWritableByteChannel from an existing WritableByteChannel.
from(OutputStream) - Static method in class org.sejda.io.CountingWritableByteChannel
Static factory method to create a CountingWritableByteChannel from an existing OutputStream.
from(File) - Static method in class org.sejda.io.CountingWritableByteChannel
Static factory method to create a CountingWritableByteChannel from an existing File.
from(String) - Static method in class org.sejda.io.CountingWritableByteChannel
Static factory method to create a CountingWritableByteChannel from an existing file path.

G

get() - Method in interface org.sejda.io.SeekableSourceSupplier
 
get() - Method in class org.sejda.io.ThreadBoundCopiesSupplier
 
getInputStream() - Method in class org.sejda.io.FastByteArrayOutputStream
Get an InputStream to retrieve the data in this OutputStream.

I

id() - Method in class org.sejda.io.BaseSeekableSource
 
id() - Method in interface org.sejda.io.SeekableSource
 
inMemorySeekableSourceFrom(InputStream) - Static method in class org.sejda.io.SeekableSources
Factory method to create a SeekableSource from a InputStream.
inMemorySeekableSourceFrom(byte[]) - Static method in class org.sejda.io.SeekableSources
Factory method to create a SeekableSource from a byte array.
INPUT_BUFFER_SIZE_PROPERTY - Static variable in class org.sejda.io.SeekableSources
Buffer size for BufferedSeekableSource
IOUtils - Class in org.sejda.util
Utility class with I/O related static methods
isOpen() - Method in class org.sejda.io.BaseSeekableSource
 
isOpen() - Method in class org.sejda.io.CountingWritableByteChannel
 
isOpen() - Method in class org.sejda.io.DevNullWritableByteChannel
 

M

MAPPED_SIZE_THRESHOLD_PROPERTY - Static variable in class org.sejda.io.SeekableSources
Threshold size in bytes where the SeekableSources method will switch to MemoryMappedSeekableSource.MemoryMappedSeekableSource(File)
MEMORY_MAPPED_PAGE_SIZE_PROPERTY - Static variable in class org.sejda.io.SeekableSources
Size of the pages used by MemoryMappedSeekableSource
MemoryMappedSeekableSource - Class in org.sejda.io
A SeekableSource implementation based on MappedByteBuffer.
MemoryMappedSeekableSource(File) - Constructor for class org.sejda.io.MemoryMappedSeekableSource
 

O

offset() - Method in class org.sejda.io.BufferedCountingChannelWriter
 
onTempFileSeekableSourceFrom(InputStream) - Static method in class org.sejda.io.SeekableSources
Factory method to create a SeekableSource from a InputStream.
org.sejda.io - package org.sejda.io
 
org.sejda.util - package org.sejda.util
 
OUTPUT_BUFFER_SIZE_PROPERTY - Static variable in class org.sejda.io.BufferedCountingChannelWriter
 

P

peek() - Method in interface org.sejda.io.SeekableSource
Reads the next byte and sets the position back by one.
peekBack() - Method in interface org.sejda.io.SeekableSource
Reads the previous byte and sets the position back where it was.
position() - Method in class org.sejda.io.BufferedSeekableSource
 
position(long) - Method in class org.sejda.io.BufferedSeekableSource
 
position() - Method in class org.sejda.io.ByteArraySeekableSource
 
position(long) - Method in class org.sejda.io.ByteArraySeekableSource
 
position() - Method in class org.sejda.io.FileChannelSeekableSource
 
position(long) - Method in class org.sejda.io.FileChannelSeekableSource
 
position() - Method in class org.sejda.io.MemoryMappedSeekableSource
 
position(long) - Method in class org.sejda.io.MemoryMappedSeekableSource
 
position() - Method in interface org.sejda.io.SeekableSource
 
position(long) - Method in interface org.sejda.io.SeekableSource
Sets the source position.

R

read(ByteBuffer) - Method in class org.sejda.io.BufferedSeekableSource
 
read() - Method in class org.sejda.io.BufferedSeekableSource
 
read(ByteBuffer) - Method in class org.sejda.io.ByteArraySeekableSource
 
read() - Method in class org.sejda.io.ByteArraySeekableSource
 
read(ByteBuffer) - Method in class org.sejda.io.FileChannelSeekableSource
 
read() - Method in class org.sejda.io.FileChannelSeekableSource
 
read(ByteBuffer) - Method in class org.sejda.io.MemoryMappedSeekableSource
 
read() - Method in class org.sejda.io.MemoryMappedSeekableSource
 
read() - Method in interface org.sejda.io.SeekableSource
Reads a byte of data from this source.
requireArg(boolean, String) - Static method in class org.sejda.util.RequireUtils
Throws an IllegalArgumentException if the given condition is not met
requireIOCondition(boolean, String) - Static method in class org.sejda.util.RequireUtils
Throws an IOException if the given condition is not met
requireNotBlank(String, String) - Static method in class org.sejda.util.RequireUtils
Throws an IllegalArgumentException if the given string is blank
requireNotNullArg(Object, String) - Static method in class org.sejda.util.RequireUtils
Throws an IllegalArgumentException if the given argument is null
requireOpen() - Method in class org.sejda.io.BaseSeekableSource
 
requireState(boolean, String) - Static method in class org.sejda.util.RequireUtils
Throws an IllegalStateException if the given condition is not met
RequireUtils - Class in org.sejda.util
Utility methods to check parameters and conditions validity.
reset() - Method in class org.sejda.io.FastByteArrayOutputStream
Reset the contents of this FastByteArrayOutputStream.
resize(int) - Method in class org.sejda.io.FastByteArrayOutputStream
Resize the internal buffer size to a specified capacity.

S

SeekableSource - Interface in org.sejda.io
Readable source that provides random access capabilities.
seekableSourceFrom(File) - Static method in class org.sejda.io.SeekableSources
Factory method to create a SeekableSource from a File.
SeekableSources - Class in org.sejda.io
This class consists of solely static methods to create the most appropriate SeekableSource based on the given input or to bridge SeekableSources to the more traditional InputStream or other standard I/O classes.
SeekableSourceSupplier<T extends SeekableSource> - Interface in org.sejda.io
 
size() - Method in class org.sejda.io.BufferedSeekableSource
 
size() - Method in class org.sejda.io.ByteArraySeekableSource
 
size() - Method in class org.sejda.io.FastByteArrayOutputStream
Return the number of bytes stored in this FastByteArrayOutputStream.
size() - Method in class org.sejda.io.FileChannelSeekableSource
 
size() - Method in class org.sejda.io.MemoryMappedSeekableSource
 
size() - Method in interface org.sejda.io.SeekableSource
 

T

ThreadBoundCopiesSupplier<T extends SeekableSource> - Class in org.sejda.io
Component suppling per-thread copies of a SeekableSource using the provided supplier.
ThreadBoundCopiesSupplier(SeekableSourceSupplier<T>) - Constructor for class org.sejda.io.ThreadBoundCopiesSupplier
 
toByteArray() - Method in class org.sejda.io.FastByteArrayOutputStream
 
toByteArray(InputStream) - Static method in class org.sejda.util.IOUtils
 
toByteArraySafe() - Method in class org.sejda.io.FastByteArrayOutputStream
Creates a newly allocated byte array.
toByteArrayUnsafe() - Method in class org.sejda.io.FastByteArrayOutputStream
Convert the stream's data to a byte array and return the byte array.
toString() - Method in class org.sejda.io.FastByteArrayOutputStream
Convert the buffer's contents into a string decoding bytes using the platform's default character set.

U

unmap(ByteBuffer) - Static method in class org.sejda.util.IOUtils
Unmap memory mapped byte buffers.

V

view(long, long) - Method in class org.sejda.io.BufferedSeekableSource
 
view(long, long) - Method in class org.sejda.io.ByteArraySeekableSource
 
view(long, long) - Method in class org.sejda.io.FileChannelSeekableSource
 
view(long, long) - Method in class org.sejda.io.MemoryMappedSeekableSource
 
view(long, long) - Method in interface org.sejda.io.SeekableSource
 

W

wrapped() - Method in class org.sejda.io.BufferedSeekableSource
 
write(String) - Method in class org.sejda.io.BufferedCountingChannelWriter
Writes the given string in Charsets.ISO_8859_1
write(byte[]) - Method in class org.sejda.io.BufferedCountingChannelWriter
Writes the given bytes to the destination
write(byte) - Method in class org.sejda.io.BufferedCountingChannelWriter
Writes the single byte to the destination
write(InputStream) - Method in class org.sejda.io.BufferedCountingChannelWriter
Writes everything that is read from the InputStream to the destination
write(ByteBuffer) - Method in class org.sejda.io.CountingWritableByteChannel
 
write(ByteBuffer) - Method in class org.sejda.io.DevNullWritableByteChannel
 
write(int) - Method in class org.sejda.io.FastByteArrayOutputStream
 
write(byte[], int, int) - Method in class org.sejda.io.FastByteArrayOutputStream
 
writeEOL() - Method in class org.sejda.io.BufferedCountingChannelWriter
 
writeTo(OutputStream) - Method in class org.sejda.io.FastByteArrayOutputStream
Write the buffers content to the given OutputStream.
A B C D F G I M O P R S T U V W 
Skip navigation links

Copyright © 2018 sejda. All rights reserved.