Skip navigation links
A B C D E F G H I L M N O P R S T U V W X Z 

A

AbstractPipe - Class in de.unkrig.commons.io.pipe
Basic implementation of a pipe.
AbstractPipe() - Constructor for class de.unkrig.commons.io.pipe.AbstractPipe
 
AbstractRingBuffer - Class in de.unkrig.commons.io.pipe
Abstract implementation of a Pipe by a "backing store" of bytes with fixed size (the "capacity").
AbstractRingBuffer(long) - Constructor for class de.unkrig.commons.io.pipe.AbstractRingBuffer
 
append(CharSequence) - Method in class de.unkrig.commons.io.TransformingFilterWriter
 
append(CharSequence, int, int) - Method in class de.unkrig.commons.io.TransformingFilterWriter
 
Appendables - Class in de.unkrig.commons.io
Utility functionality in the context of the Appendable interface.
asFile(InputStream, boolean, String, String, File, ConsumerWhichThrows<? super File, ? extends EX>) - Static method in class de.unkrig.commons.io.IoUtil
Creates a temporary file, stores all data that can be read from the inputStream into it, closes the file, invokes the delegate with the file, and eventually deletes the file.
asInputOutputStreams(Pipe) - Static method in class de.unkrig.commons.io.pipe.PipeUtil
Creates and returns a pair of output stream and input stream which write to and read from the given pipe.
asInputOutputStreams(Pipe, boolean) - Static method in class de.unkrig.commons.io.pipe.PipeUtil
Creates and returns a pair of output stream and input stream which write to and read from the given pipe.
asReader(CharSequence) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
asReader(CharSequence) - Static method in class de.unkrig.commons.io.Readers
Wraps the given CharSequence in a Reader - much more efficient than "new StringReader(cs.toString)".
AsyncBufferedOutputStream - Class in de.unkrig.commons.io
A FilterOutputStream that forwards data asynchronously (with a background thread) to the delegate OutputStream.
AsyncBufferedOutputStream(OutputStream, ByteBuffer, boolean) - Constructor for class de.unkrig.commons.io.AsyncBufferedOutputStream
 
available() - Method in class de.unkrig.commons.io.ConcatInputStream
 
available() - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
available() - Method in class de.unkrig.commons.io.PercentEncodingInputStream
 
available() - Method in class de.unkrig.commons.io.ReaderInputStream
 
available() - Method in class de.unkrig.commons.io.WyeInputStream
Deprecated.
 

B

BlockingException - Exception in de.unkrig.commons.io
Indicates that an I/O operation is would block, but the underlying object (e.g. a InputStream) is configured as 'non-blocking'.
BlockingException() - Constructor for exception de.unkrig.commons.io.BlockingException
 
byteArrayRingBuffer(int) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
byteBufferRingBuffer(ByteBuffer) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
byteConsumerOutputStream(ConsumerWhichThrows<? super Byte, ? extends IOException>) - Static method in class de.unkrig.commons.io.IoUtil
byteConsumerOutputStream(ConsumerWhichThrows<? super Byte, ? extends IOException>) - Static method in class de.unkrig.commons.io.OutputStreams
 
ByteFilter<T> - Interface in de.unkrig.commons.io
An object that reads bytes from an InputStream and writes bytes to an OutputStream.
ByteFilterInputStream - Class in de.unkrig.commons.io
A FilterInputStream that transforms the byte stream through a ByteFilter.
ByteFilterInputStream(InputStream, ByteFilter<?>) - Constructor for class de.unkrig.commons.io.ByteFilterInputStream
 
ByteFilterOutputStream - Class in de.unkrig.commons.io
A FilterInputStream that transforms the byte stream through a ByteFilter.
ByteFilterOutputStream(ByteFilter<?>, OutputStream) - Constructor for class de.unkrig.commons.io.ByteFilterOutputStream
 
byteProducerInputStream(ProducerWhichThrows<? extends Byte, ? extends IOException>) - Static method in class de.unkrig.commons.io.InputStreams
 
byteProducerInputStream(Producer<? extends Byte>) - Static method in class de.unkrig.commons.io.InputStreams
 
byteProducerInputStream(ProducerWhichThrows<? extends Byte, ? extends IOException>) - Static method in class de.unkrig.commons.io.IoUtil
byteProducerInputStream(Producer<? extends Byte>) - Static method in class de.unkrig.commons.io.IoUtil

C

cancel() - Method in interface de.unkrig.commons.io.Multiplexer.TimerKey
Cancels the timer associated with this key.
CharFilter<T> - Interface in de.unkrig.commons.io
An object that reads chars from an Reader and writes chars to an Writer.
CharFilterReader - Class in de.unkrig.commons.io
A FilterReader that transforms the char stream through a CharFilter.
CharFilterReader(Reader, CharFilter<?>) - Constructor for class de.unkrig.commons.io.CharFilterReader
 
CharFilterWriter - Class in de.unkrig.commons.io
A FilterReader that transforms the char stream through a CharFilter.
CharFilterWriter(CharFilter<?>, Writer) - Constructor for class de.unkrig.commons.io.CharFilterWriter
 
close() - Method in class de.unkrig.commons.io.AsyncBufferedOutputStream
 
close() - Method in class de.unkrig.commons.io.ByteFilterInputStream
 
close() - Method in class de.unkrig.commons.io.ByteFilterOutputStream
 
close() - Method in class de.unkrig.commons.io.CharFilterReader
 
close() - Method in class de.unkrig.commons.io.CharFilterWriter
 
close() - Method in class de.unkrig.commons.io.ConcatInputStream
 
close() - Method in class de.unkrig.commons.io.FileBufferedChannel
 
close() - Method in class de.unkrig.commons.io.FixedLengthInputStream
 
close() - Method in class de.unkrig.commons.io.FixedLengthOutputStream
 
close() - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
close() - Method in interface de.unkrig.commons.io.pipe.Pipe
Releases any resources allocated for this pipe.
close() - Method in class de.unkrig.commons.io.ReaderInputStream
 
close() - Method in class de.unkrig.commons.io.TeeOutputStream
Deprecated.
 
close() - Method in class de.unkrig.commons.io.TransformingFilterWriter
 
close() - Method in class de.unkrig.commons.io.UnclosableInputStream
Deprecated.
 
close() - Method in class de.unkrig.commons.io.UnclosableOutputStream
Deprecated.
 
close() - Method in class de.unkrig.commons.io.WriterOutputStream
 
columnNumber() - Method in class de.unkrig.commons.io.CountingReader
Returns the column number of the previously read character, or '0' if no character has been read yet.
compareOutput(int, Runnable, Runnable) - Static method in class de.unkrig.commons.io.IoUtil
compareOutput(int, Runnable, Runnable) - Static method in class de.unkrig.commons.io.OutputStreams
Creates and returns an array of n OutputStreams.
ConcatInputStream - Class in de.unkrig.commons.io
Concatenates the contents of several InputStreams.
ConcatInputStream(Producer<? extends InputStream>, boolean) - Constructor for class de.unkrig.commons.io.ConcatInputStream
 
constantInputStream(byte) - Static method in class de.unkrig.commons.io.InputStreams
 
constantInputStream(byte) - Static method in class de.unkrig.commons.io.IoUtil
copy(InputStream, OutputStream) - Static method in class de.unkrig.commons.io.IoUtil
Reads the input stream until end-of-input and writes all data to the output stream.
copy(InputStream, OutputStream, long) - Static method in class de.unkrig.commons.io.IoUtil
Reads at most n bytes from the inputStream and writes all data to the outputStream.
copy(InputStream, boolean, OutputStream, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputStream to the outputStream.
copy(Reader, Writer) - Static method in class de.unkrig.commons.io.IoUtil
Reads the reader until end-of-input and writes all data to the writer.
copy(Reader, boolean, Writer, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the reader to the writer.
copy(Reader, OutputStream, Charset) - Static method in class de.unkrig.commons.io.IoUtil
Reads the reader until end-of-input and writes all data to the output stream.
copy(Readable, Appendable) - Static method in class de.unkrig.commons.io.IoUtil
Reads the Readable until end-of-input and writes all data to the Appendable.
copy(InputStream, boolean, File, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputStream to the outputFile.
copy(Reader, boolean, File, boolean, Charset) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the reader to the outputFile, encoded with the given outputCharset.
copy(File, OutputStream, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputFile to the outputStream.
copy(InputStream, boolean, File) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputStream to the outputFile.
copy(InputStream, boolean, File, IoUtil.CollisionStrategy) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputStream to the outputFile.
copy(File, File) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputFile to the outputFile.
copy(File, File, IoUtil.CollisionStrategy) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of the inputFile to the outputFile.
copyAndTransform(Reader, TransformerWhichThrows<? super CharSequence, ? extends CharSequence, ? extends EX>, Appendable, int) - Static method in class de.unkrig.commons.io.IoUtil
Reads chunks from in, repeatedly, (until end-of-input), transforms each chunk through the transformer, and writes the results to out.
copyAvailable(InputStream, OutputStream) - Static method in class de.unkrig.commons.io.IoUtil
Reads data from the input stream and writes it to the output stream.
copyAvailable(InputStream, OutputStream, long) - Static method in class de.unkrig.commons.io.IoUtil
Reads at most n bytes from the input stream and writes all data to the output stream.
copyFrom(InputStream) - Static method in class de.unkrig.commons.io.IoUtil
 
copyResource(ClassLoader, String, OutputStream, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents of a resource to the given outputStream.
copyResource(Class<?>, String, OutputStream, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents a resource to the given outputStream.
copyResource(ClassLoader, String, File, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents a resource to the given toFile.
copyResource(Class<?>, String, File, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Copies the contents a resource to the given toFile.
copyRunnable(InputStream, OutputStream) - Static method in class de.unkrig.commons.io.IoUtil
Creates and returns a RunnableWhichThrows that copies bytes from in to out until end-of-input.
copyTree(File, File, IoUtil.CollisionStrategy) - Static method in class de.unkrig.commons.io.IoUtil
Copies a directory tree.
copyTree(URL, File, IoUtil.CollisionStrategy) - Static method in class de.unkrig.commons.io.IoUtil
Copies a resource tree to a directory in the file system.
CountingInputStream - Class in de.unkrig.commons.io
CountingInputStream(InputStream) - Constructor for class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
CountingInputStream(InputStream, long) - Constructor for class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
CountingOutputStream - Class in de.unkrig.commons.io
CountingOutputStream() - Constructor for class de.unkrig.commons.io.CountingOutputStream
Deprecated.
 
CountingOutputStream(long) - Constructor for class de.unkrig.commons.io.CountingOutputStream
Deprecated.
 
CountingReader - Class in de.unkrig.commons.io
A FilterReader that counts characters and line breaks in the stream.
CountingReader(Reader) - Constructor for class de.unkrig.commons.io.CountingReader
 
create(Reader, TransformerWhichThrows<? super CharSequence, ? extends CharSequence, ? extends IOException>) - Static method in class de.unkrig.commons.io.TransformingFilterReader
This method is sometimes more efficient than calling "new TransformingFilterReader()".
create(TransformerWhichThrows<? super CharSequence, ? extends CharSequence, ? extends IOException>, Appendable) - Static method in class de.unkrig.commons.io.TransformingFilterWriter
This method is sometimes more efficient than calling "new TransformingFilterWriter()".
createMissingParentDirectoriesFor(File) - Static method in class de.unkrig.commons.io.IoUtil
Creates any missing parent directories for the given file.

D

de.unkrig.commons.io - package de.unkrig.commons.io
This package contains classes and interfaces that extend to capabilities of InputStreams, OutputStreams, Readers and Writers.
de.unkrig.commons.io.pipe - package de.unkrig.commons.io.pipe
A pipe is an object to which data can be written and from which data can be read; the data read equals the data previously written.
deleteFileOnClose(Pipe, File) - Static method in class de.unkrig.commons.io.pipe.PipeUtil
 
deleteOnClose(InputStream, File) - Static method in class de.unkrig.commons.io.InputStreams
 
deleteOnClose(InputStream, File) - Static method in class de.unkrig.commons.io.IoUtil
DISCARD - Static variable in class de.unkrig.commons.io.OutputStreams
An OutputStream that discards all bytes written to it.
DISCARD - Static variable in class de.unkrig.commons.io.Writers
A writer that ignores any data written to it.
drain(InputStream) - Method in interface de.unkrig.commons.io.pipe.PipeUtil.Drainer
Reads form the given input stream exactly the data that was previously written.

E

elasticPipe() - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
elasticPipe(ProducerWhichThrows<? extends Pipe, ? extends IOException>) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
EMPTY - Static variable in class de.unkrig.commons.io.InputStreams
An InputStream that produces exactly 0 bytes.
EMPTY_INPUT_STREAM - Static variable in class de.unkrig.commons.io.IoUtil
Deprecated.
Use InputStreams.EMPTY instead
EMPTY_READER - Static variable in class de.unkrig.commons.io.Readers
A reader that always signals "end-of-input".

F

FileBufferedChannel - Class in de.unkrig.commons.io
A WritableByteChannel which forwards the data to a delegate.
FileBufferedChannel(Multiplexer, SelectableChannel) - Constructor for class de.unkrig.commons.io.FileBufferedChannel
 
fill(OutputStream, byte, long) - Static method in class de.unkrig.commons.io.IoUtil
fill(OutputStream, byte, long) - Static method in class de.unkrig.commons.io.OutputStreams
Writes count bytes of value b to the given outputStream.
fill(OutputStream) - Method in interface de.unkrig.commons.io.pipe.PipeUtil.Filler
Writes data to the given output stream.
finalize() - Method in class de.unkrig.commons.io.pipe.AbstractPipe
 
findOnPath(File[], String) - Static method in class de.unkrig.commons.io.IoUtil
Finds and returns a named resource along a "path", e.g. a Java "class path" or "source path".
FixedLengthInputStream - Class in de.unkrig.commons.io
Signals end-of-input after exactly limit bytes were read from the delegate.
FixedLengthInputStream(InputStream, long) - Constructor for class de.unkrig.commons.io.FixedLengthInputStream
 
FixedLengthOutputStream - Class in de.unkrig.commons.io
This stream enforces that an exact number of bytes is written to it before it is closed.
FixedLengthOutputStream(OutputStream, long) - Constructor for class de.unkrig.commons.io.FixedLengthOutputStream
 
flush() - Method in class de.unkrig.commons.io.AsyncBufferedOutputStream
 
flush() - Method in class de.unkrig.commons.io.HexOutputStream
 
flush() - Method in class de.unkrig.commons.io.TeeOutputStream
Deprecated.
 
flush() - Method in class de.unkrig.commons.io.TransformingFilterWriter
 
flush() - Method in class de.unkrig.commons.io.WriterOutputStream
 
from(Writer) - Static method in class de.unkrig.commons.io.Appendables
Wraps a Writer as an Appendable.
fromAppendable(Appendable) - Static method in class de.unkrig.commons.io.Writers
Wraps an Appendable as a Writer (if necessary).

G

get(long, byte[], int, int) - Method in class de.unkrig.commons.io.pipe.AbstractRingBuffer
Transfers len bytes from the backing store to buf[off]....
getCount() - Method in class de.unkrig.commons.io.CountingOutputStream
Deprecated.
 
getInputStream() - Method in interface de.unkrig.commons.io.pipe.PipeUtil.InputOutputStreams
 
getOutputStream() - Method in interface de.unkrig.commons.io.pipe.PipeUtil.InputOutputStreams
 

H

HexOutputStream - Class in de.unkrig.commons.io
An OutputStream that formats and prints the data written to it in lines of 32 bytes.
HexOutputStream(Writer) - Constructor for class de.unkrig.commons.io.HexOutputStream
 

I

InputStreams - Class in de.unkrig.commons.io
Utility functionality related to InputStreams.
IoUtil - Class in de.unkrig.commons.io
Various java.io-related utility methods.
IoUtil.CollisionStrategy - Enum in de.unkrig.commons.io
Determines the behavior of the IoUtil.copyTree(File, File, CollisionStrategy) and IoUtil.copyTree(File, File, CollisionStrategy) methods when files collide while copying.
IoUtil.WritingRunnable - Interface in de.unkrig.commons.io
An entity which writes characters to a Writer.
isContentIdentical(File, File) - Static method in class de.unkrig.commons.io.IoUtil
 
isEmpty() - Method in class de.unkrig.commons.io.pipe.AbstractRingBuffer
 
isEmpty() - Method in interface de.unkrig.commons.io.pipe.Pipe
 
isFull() - Method in class de.unkrig.commons.io.pipe.AbstractRingBuffer
 
isFull() - Method in interface de.unkrig.commons.io.pipe.Pipe
 
isOpen() - Method in class de.unkrig.commons.io.FileBufferedChannel
 
isUnreserved(int) - Static method in class de.unkrig.commons.io.PercentEncoding
 

L

lengthWritten(Consumer<? super Integer>) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
lengthWritten(Consumer<? super Integer>) - Static method in class de.unkrig.commons.io.OutputStreams
Creates and returns an OutputStream which ignores the data written to it and only honors the number of bytes written: Every time data is written to the OutputStream, it invokes the consume() method on the delegate with the number of bytes written (not the cumulated number of bytes written!).
lineConsumer(Writer) - Static method in class de.unkrig.commons.io.LineUtil
Writes the consumed strings as lines to the given Writer.
lineConsumer(PrintWriter) - Static method in class de.unkrig.commons.io.LineUtil
Prints the consumed strings as lines to the given PrintWriter.
lineConsumer(PrintStream) - Static method in class de.unkrig.commons.io.LineUtil
Prints the consumed strings as lines to the given PrintStream.
lineConsumerISO8859_1(OutputStream) - Static method in class de.unkrig.commons.io.LineUtil
Writes the consumed strings as lines to the ISO 8859-1-encoded OutputStream.
lineNumber() - Method in class de.unkrig.commons.io.CountingReader
Returns the line number of the previously read character, or '1' if no character has been read yet.
lineProducer(Reader) - Static method in class de.unkrig.commons.io.LineUtil
Produces lines from a Reader.
lineProducer(String) - Static method in class de.unkrig.commons.io.LineUtil
Produces lines from a string by splitting that at line breaks.
lineProducer(CharSequence) - Static method in class de.unkrig.commons.io.LineUtil
Produces lines from a CharSequence by splitting that at line breaks.
lineProducerISO8859_1(InputStream) - Static method in class de.unkrig.commons.io.LineUtil
Produces lines from a ISO 8859-1-encoded InputStream.
LineUtil - Class in de.unkrig.commons.io
Various utility methods for processing "lines", i.e. sequences of strings (which typically don't contain line breaks).

M

mappedFileRingBuffer(File, int, boolean) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
mappedTempFileRingBuffer(int) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
mark(int) - Method in class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
mark(int) - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
mark(int) - Method in class de.unkrig.commons.io.TransformingFilterReader
 
MarkableFileInputStream - Class in de.unkrig.commons.io
A drop-in replacement for FileInputStream that supports mark(int) and reset().
MarkableFileInputStream(String) - Constructor for class de.unkrig.commons.io.MarkableFileInputStream
 
MarkableFileInputStream(File) - Constructor for class de.unkrig.commons.io.MarkableFileInputStream
 
markSupported() - Method in class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
markSupported() - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
markSupported() - Method in class de.unkrig.commons.io.TransformingFilterReader
 
Multiplexer - Class in de.unkrig.commons.io
A thin wrapper for the JDK Selector that also manages timers and multiple threads.
Multiplexer() - Constructor for class de.unkrig.commons.io.Multiplexer
 
Multiplexer.TimerKey - Interface in de.unkrig.commons.io
An identifier for a created timer.

N

NULL_OUTPUT_STREAM - Static variable in class de.unkrig.commons.io.IoUtil
Deprecated.

O

offset() - Method in class de.unkrig.commons.io.CountingReader
 
onClose(Pipe, RunnableWhichThrows<IOException>) - Static method in class de.unkrig.commons.io.pipe.PipeUtil
 
onEndOfInput(InputStream, Runnable) - Static method in class de.unkrig.commons.io.InputStreams
Creates and returns an InputStream that reads from the delegate and invokes the runnable on the first end-of-input condition.
onEndOfInput(InputStream, Runnable) - Static method in class de.unkrig.commons.io.IoUtil
outputFile(File, ConsumerWhichThrows<? super File, ? extends EX>, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Creates a temporary file, invokes the delegate with that file, and eventually renames the temporary file to its "real" name (replacing a possibly existing file).
outputFileOutputStream(File, ConsumerWhichThrows<? super OutputStream, ? extends EX>, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Lets the delegate write to an OutputStream (effectively a temporary file), and eventually renames the temporary file to "file" (replacing a possibly existing file).
outputFilePrintWriter(File, Charset, ConsumerWhichThrows<? super PrintWriter, ? extends EX>) - Static method in class de.unkrig.commons.io.IoUtil
outputFilePrintWriter(File, Charset, ConsumerWhichThrows<? super PrintWriter, ? extends EX>, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Lets the delegate print to a PrintWriter (effectively a temporary file), and eventually renames the temporary file to "file" (replacing a possibly existing file).
OutputStreams - Class in de.unkrig.commons.io
Utility functionality related to OutputStreams.

P

parallel(IoUtil.WritingRunnable[], Writer) - Static method in class de.unkrig.commons.io.IoUtil
Executes the writingRunnables in parallel, concatenates their output, and writes it to the writer, i.e. the output of the runnables does not mix, but the complete output of the first runnable appears before that of the second runnable, and so on.
PercentEncoding - Class in de.unkrig.commons.io
Implements Percent-Encoding.
PercentEncodingInputStream - Class in de.unkrig.commons.io
Implements the decoding of percent-encoded bytes.
PercentEncodingInputStream(InputStream) - Constructor for class de.unkrig.commons.io.PercentEncodingInputStream
 
PercentEncodingOutputStream - Class in de.unkrig.commons.io
Implements Percent-Encoding.
PercentEncodingOutputStream(OutputStream) - Constructor for class de.unkrig.commons.io.PercentEncodingOutputStream
 
Pipe - Interface in de.unkrig.commons.io.pipe
Pipe.read(byte[], int, int) produces exactly the bytes that were previously written.
PipeFactory - Class in de.unkrig.commons.io.pipe
The methods of this class create the various Pipe implementations: PipeFactory.byteArrayRingBuffer(int) A pipe which is backed by an (internal) byte array PipeFactory.byteBufferRingBuffer(ByteBuffer) A pipe which is backed by a ByteBuffer PipeFactory.elasticPipe() A Pipe that implements infinite capacity and good performance by first allocating a small in-memory ring buffer, then, if that fills up, a larger one that uses a memory-mapped file, and eventually one based on a random access file with practically unlimited size PipeFactory.elasticPipe(de.unkrig.commons.lang.protocol.ProducerWhichThrows) A Pipe that implements infinite capacity by allocating delegate pipes as needed (and closing them when they are no longer needed) PipeFactory.mappedFileRingBuffer(java.io.File, int, boolean) A pipe which is backed by a memory-mapped file, which will be unmapped and (optionally) deleted when the pipe is closed PipeFactory.mappedTempFileRingBuffer(int) A pipe which is backed by a memory-mapped temporary file, which will be unmapped and deleted when the pipe is closed PipeFactory.randomAccessFileRingBuffer(java.io.File, long, boolean) A pipe which is backed by a RandomAccessFile, which will (optionally) be deleted when the pipe is closed PipeFactory.randomAccessTempFileRingBuffer(long) A pipe which is backed by a temporary RandomAccessFile, which is deleted when the pipe is closed The characteristics of these implementations are as follows:   Performance Resource usage Size limits byteArrayRingBuffer(int) Fast Heap memory 2 GB byteBufferRingBuffer(ByteBuffer.allocate(int)) Fast Heap memory 2 GB byteBufferRingBuffer(ByteBuffer.allocateDirect(int)) Fast Off-heap memory 2 GB mappedFileRingBuffer(File, int, boolean) Medium Low 2 GB, Address space, disk space randomAccessFileRingBuffer(File, long, boolean) Low Low Disk space
PipeUtil - Class in de.unkrig.commons.io.pipe
Utility methods related to the Pipe interface.
PipeUtil.Drainer - Interface in de.unkrig.commons.io.pipe
Drains 'something' by reading data from an input stream.
PipeUtil.Filler - Interface in de.unkrig.commons.io.pipe
Fills 'something' by writing data to an output stream.
PipeUtil.FillerAndDrainer - Interface in de.unkrig.commons.io.pipe
 
PipeUtil.InputOutputStreams - Interface in de.unkrig.commons.io.pipe
A tuple of one InputStream and one OutputStream.
ProxyInputStream - Class in de.unkrig.commons.io
A FilterInputStream where the delegate can also be changed after construction.
ProxyInputStream(InputStream) - Constructor for class de.unkrig.commons.io.ProxyInputStream
 
ProxyOutputStream - Class in de.unkrig.commons.io
A FilterOutputStream where the delegate can also be changed after construction.
ProxyOutputStream(OutputStream) - Constructor for class de.unkrig.commons.io.ProxyOutputStream
 
put(byte[], int, int, long) - Method in class de.unkrig.commons.io.pipe.AbstractRingBuffer
Transfers len bytes from buf[off]... to the backing store.

R

randomAccessFileRingBuffer(File, long, boolean) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
randomAccessTempFileRingBuffer(long) - Static method in class de.unkrig.commons.io.pipe.PipeFactory
 
randomInputStream(long) - Static method in class de.unkrig.commons.io.InputStreams
 
randomInputStream(long) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
read() - Method in class de.unkrig.commons.io.ByteFilterInputStream
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.ByteFilterInputStream
 
read() - Method in class de.unkrig.commons.io.CharFilterReader
 
read(char[], int, int) - Method in class de.unkrig.commons.io.CharFilterReader
 
read() - Method in class de.unkrig.commons.io.ConcatInputStream
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.ConcatInputStream
 
read() - Method in class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
read() - Method in class de.unkrig.commons.io.CountingReader
 
read(char[], int, int) - Method in class de.unkrig.commons.io.CountingReader
 
read() - Method in class de.unkrig.commons.io.FixedLengthInputStream
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.FixedLengthInputStream
 
read() - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
read() - Method in class de.unkrig.commons.io.PercentEncodingInputStream
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.PercentEncodingInputStream
 
read(byte[]) - Method in class de.unkrig.commons.io.pipe.AbstractPipe
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.pipe.AbstractRingBuffer
 
read(byte[]) - Method in interface de.unkrig.commons.io.pipe.Pipe
Reads at most buf.length bytes from this pipe into the buf.
read(byte[], int, int) - Method in interface de.unkrig.commons.io.pipe.Pipe
Reads at most len bytes from this pipe into the buf at offset off.
read() - Method in class de.unkrig.commons.io.ReaderInputStream
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.ReaderInputStream
 
read() - Method in class de.unkrig.commons.io.TransformingFilterReader
 
read(char[], int, int) - Method in class de.unkrig.commons.io.TransformingFilterReader
 
read() - Method in class de.unkrig.commons.io.WyeInputStream
Deprecated.
 
read(byte[], int, int) - Method in class de.unkrig.commons.io.WyeInputStream
Deprecated.
 
read() - Method in class de.unkrig.commons.io.WyeReader
 
read(char[], int, int) - Method in class de.unkrig.commons.io.WyeReader
 
readAll(InputStream) - Static method in class de.unkrig.commons.io.InputStreams
Equivalent with readAll(is, false).
readAll(InputStream, boolean) - Static method in class de.unkrig.commons.io.InputStreams
 
readAll(InputStream, Charset, boolean) - Static method in class de.unkrig.commons.io.InputStreams
 
readAll(InputStream) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
readAll(InputStream, Charset, boolean) - Static method in class de.unkrig.commons.io.IoUtil
readAll(Reader) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
readAll(Reader, boolean) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
readAll(Reader) - Static method in class de.unkrig.commons.io.Readers
 
readAll(Reader, boolean) - Static method in class de.unkrig.commons.io.Readers
 
readAllLines(Reader, boolean) - Static method in class de.unkrig.commons.io.LineUtil
Reads lines from the given reader until end-of-input.
ReaderInputStream - Class in de.unkrig.commons.io
Reads characters from a delegate Reader and encodes them into data bytes.
ReaderInputStream(Reader) - Constructor for class de.unkrig.commons.io.ReaderInputStream
Creates a ReaderInputStream with the JVM default charset.
ReaderInputStream(Reader, String) - Constructor for class de.unkrig.commons.io.ReaderInputStream
 
ReaderInputStream(Reader, Charset) - Constructor for class de.unkrig.commons.io.ReaderInputStream
 
ReaderInputStream(Reader, CharsetEncoder) - Constructor for class de.unkrig.commons.io.ReaderInputStream
 
Readers - Class in de.unkrig.commons.io
Utility functionality related to Readers.
readLineWithSeparator(Reader) - Static method in class de.unkrig.commons.io.LineUtil
Similar to BufferedReader.readLine(), except that The produced strings include the line separator Not only CR, LF and CRLF are recognized as line terminators, but also some other special characters, as described here
ready() - Method in class de.unkrig.commons.io.TransformingFilterReader
 
register(SelectableChannel, int, RunnableWhichThrows<IOException>) - Method in class de.unkrig.commons.io.Multiplexer
Executes the given runnable exactly once iff the channel becomes acceptable, connected, readable and/or writable.
reset() - Method in class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
reset() - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
reset() - Method in class de.unkrig.commons.io.TransformingFilterReader
 
run(InputStream, OutputStream) - Method in interface de.unkrig.commons.io.ByteFilter
Reads bytes from the given InputStream (up to end-of-input or not), and writes bytes to the given OutputStream.
run(Reader, Writer) - Method in interface de.unkrig.commons.io.CharFilter
Reads chars from the given Reader (up to end-of-input or not), and writes chars to the given Writer.
run(Writer) - Method in interface de.unkrig.commons.io.IoUtil.WritingRunnable
 
run() - Method in class de.unkrig.commons.io.Multiplexer
Handles channels and timers; returns never.

S

setDelegate(InputStream) - Method in class de.unkrig.commons.io.ProxyInputStream
 
setDelegate(OutputStream) - Method in class de.unkrig.commons.io.ProxyOutputStream
 
singlingFilterInputStream(InputStream) - Static method in class de.unkrig.commons.io.InputStreams
 
singlingFilterInputStream(InputStream) - Static method in class de.unkrig.commons.io.IoUtil
singlingFilterReader(Reader) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
singlingFilterReader(Reader) - Static method in class de.unkrig.commons.io.Readers
 
skip(long) - Method in class de.unkrig.commons.io.ConcatInputStream
 
skip(long) - Method in class de.unkrig.commons.io.CountingInputStream
Deprecated.
 
skip(long) - Method in class de.unkrig.commons.io.FixedLengthInputStream
 
skip(InputStream, long) - Static method in class de.unkrig.commons.io.InputStreams
Skips n bytes on the inputStream.
skip(InputStream, long) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
skip(long) - Method in class de.unkrig.commons.io.MarkableFileInputStream
 
skip(long) - Method in class de.unkrig.commons.io.PercentEncodingInputStream
 
skip(long) - Method in class de.unkrig.commons.io.TransformingFilterReader
 
skipAll(InputStream) - Static method in class de.unkrig.commons.io.InputStreams
Skips all remaining data on the inputStream.
skipAll(InputStream) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
split(ProducerWhichThrows<? extends OutputStream, ? extends IOException>, Producer<? extends Long>) - Static method in class de.unkrig.commons.io.IoUtil
split(ProducerWhichThrows<? extends OutputStream, ? extends IOException>, Producer<? extends Long>) - Static method in class de.unkrig.commons.io.OutputStreams
Creates and returns an OutputStream which writes at most byteCountLimits.produce() bytes to delegates.produce() before closing it and writing the next byteCountLimits.produce() bytes to delegates.produce(), and so on.
stop() - Method in class de.unkrig.commons.io.Multiplexer
Causes Multiplexer.run() to complete normally soon; if Multiplexer.run() is not currently being executed, then calling Multiplexer.stop() has no effect.

T

tee(OutputStream...) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
tee(OutputStream...) - Static method in class de.unkrig.commons.io.OutputStreams
Creates and returns an OutputStream that delegates all work to the given delegates: The write() methods write the given data to all the delegates; if any of these throw an IOException, it is rethrown, and it is undefined whether all the data was written to all the delegates.
TeeOutputStream - Class in de.unkrig.commons.io
Deprecated.
Prefer delegation over inheritance and use OutputStreams.tee(OutputStream...) instead.
TeeOutputStream(OutputStream, OutputStream) - Constructor for class de.unkrig.commons.io.TeeOutputStream
Deprecated.
 
temporaryStorage(PipeUtil.FillerAndDrainer) - Static method in class de.unkrig.commons.io.pipe.PipeUtil
Convenience method for PipeUtil.temporaryStorage(Filler, Drainer) when the filler wants to pass information to the drainer.
temporaryStorage(PipeUtil.Filler, PipeUtil.Drainer) - Static method in class de.unkrig.commons.io.pipe.PipeUtil
Creates a temporary PipeFactory.elasticPipe(), invokes the filler (which fills the pipe), then invokes the drainer (which drains the pipe), and eventually closes the pipe.
timer(long, Runnable) - Method in class de.unkrig.commons.io.Multiplexer
Registers the given runnable for exactly one execution by this Multiplexer's Multiplexer.run() method when the current time is equal to (or slightly greater than) expiry.
transferFrom(ReadableByteChannel, long) - Method in class de.unkrig.commons.io.FileBufferedChannel
???
TransformingFilterReader - Class in de.unkrig.commons.io
A FilterReader which transforms the character stream on-the-fly with a {@link Transformer Transformer<?
TransformingFilterReader(Reader, TransformerWhichThrows<? super CharSequence, ? extends CharSequence, ? extends IOException>) - Constructor for class de.unkrig.commons.io.TransformingFilterReader
 
TransformingFilterWriter - Class in de.unkrig.commons.io
A Writer which transforms the character stream on-the-fly with a Transformer<String>.
TransformingFilterWriter(TransformerWhichThrows<? super CharSequence, ? extends CharSequence, ? extends IOException>, Appendable) - Constructor for class de.unkrig.commons.io.TransformingFilterWriter
 

U

unclosable(InputStream) - Static method in class de.unkrig.commons.io.InputStreams
 
unclosable(OutputStream) - Static method in class de.unkrig.commons.io.OutputStreams
 
unclosableInputStream(InputStream) - Static method in class de.unkrig.commons.io.IoUtil
Deprecated.
UnclosableInputStream - Class in de.unkrig.commons.io
UnclosableInputStream(InputStream) - Constructor for class de.unkrig.commons.io.UnclosableInputStream
Deprecated.
 
unclosableOutputStream(OutputStream) - Static method in class de.unkrig.commons.io.IoUtil
unclosableOutputStream(OutputStream) - Static method in class de.unkrig.commons.io.OutputStreams
UnclosableOutputStream - Class in de.unkrig.commons.io
UnclosableOutputStream(OutputStream) - Constructor for class de.unkrig.commons.io.UnclosableOutputStream
Deprecated.
 

V

valueOf(String) - Static method in enum de.unkrig.commons.io.IoUtil.CollisionStrategy
Returns the enum constant of this type with the specified name.
values() - Static method in enum de.unkrig.commons.io.IoUtil.CollisionStrategy
Returns an array containing the constants of this enum type, in the order they are declared.

W

write(int) - Method in class de.unkrig.commons.io.AsyncBufferedOutputStream
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.AsyncBufferedOutputStream
 
write(int) - Method in class de.unkrig.commons.io.ByteFilterOutputStream
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.ByteFilterOutputStream
 
write(int) - Method in class de.unkrig.commons.io.CharFilterWriter
 
write(char[], int, int) - Method in class de.unkrig.commons.io.CharFilterWriter
 
write(int) - Method in class de.unkrig.commons.io.CountingOutputStream
Deprecated.
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.CountingOutputStream
Deprecated.
 
write(ByteBuffer) - Method in class de.unkrig.commons.io.FileBufferedChannel
 
write(int) - Method in class de.unkrig.commons.io.FixedLengthOutputStream
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.FixedLengthOutputStream
 
write(int) - Method in class de.unkrig.commons.io.HexOutputStream
 
write(int) - Method in class de.unkrig.commons.io.PercentEncodingOutputStream
 
write(byte[]) - Method in class de.unkrig.commons.io.pipe.AbstractPipe
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.pipe.AbstractRingBuffer
 
write(byte[]) - Method in interface de.unkrig.commons.io.pipe.Pipe
Writes at most buf.length bytes from buf to this pipe.
write(byte[], int, int) - Method in interface de.unkrig.commons.io.pipe.Pipe
Writes at most len bytes from buf at offset off to this pipe.
write(byte[], int, int) - Method in class de.unkrig.commons.io.ProxyOutputStream
 
write(byte[]) - Method in class de.unkrig.commons.io.TeeOutputStream
Deprecated.
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.TeeOutputStream
Deprecated.
 
write(int) - Method in class de.unkrig.commons.io.TeeOutputStream
Deprecated.
 
write(char[], int, int) - Method in class de.unkrig.commons.io.TransformingFilterWriter
 
write(String, int, int) - Method in class de.unkrig.commons.io.TransformingFilterWriter
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.UnclosableOutputStream
Deprecated.
 
write(byte[], int, int) - Method in class de.unkrig.commons.io.WriterOutputStream
 
write(int) - Method in class de.unkrig.commons.io.WriterOutputStream
 
write(int) - Method in class de.unkrig.commons.io.XMLFormatterWriter
 
write(char[], int, int) - Method in class de.unkrig.commons.io.XMLFormatterWriter
 
write(String, int, int) - Method in class de.unkrig.commons.io.XMLFormatterWriter
 
writeAndCount(ConsumerWhichThrows<? super OutputStream, ? extends IOException>, OutputStream) - Static method in class de.unkrig.commons.io.IoUtil
writeAndCount(ConsumerWhichThrows<? super OutputStream, ? extends IOException>, OutputStream) - Static method in class de.unkrig.commons.io.OutputStreams
Invokes writeContents.consume() with an output stream subject that writes the data through to the given outputStream.
writer(Appendable) - Static method in class de.unkrig.commons.io.Appendables
Wraps an Appendable as a Writer.
WriterOutputStream - Class in de.unkrig.commons.io
Decodes the data bytes into characters, and writes them to a given delegate Writer.
WriterOutputStream(Writer) - Constructor for class de.unkrig.commons.io.WriterOutputStream
 
WriterOutputStream(Writer, String) - Constructor for class de.unkrig.commons.io.WriterOutputStream
 
WriterOutputStream(Writer, Charset) - Constructor for class de.unkrig.commons.io.WriterOutputStream
 
WriterOutputStream(Writer, CharsetDecoder) - Constructor for class de.unkrig.commons.io.WriterOutputStream
 
Writers - Class in de.unkrig.commons.io
Utility functionality related to Writers.
writeUnencoded(int) - Method in class de.unkrig.commons.io.PercentEncodingOutputStream
Writes a given byte to the delegate without percent-encoding it.
wye(InputStream, OutputStream) - Static method in class de.unkrig.commons.io.InputStreams
Creates and returns a FilterInputStream that duplicates all bytes read through it and writes them to an OutputStream.
wye(InputStream, OutputStream) - Static method in class de.unkrig.commons.io.IoUtil
WyeInputStream - Class in de.unkrig.commons.io
Deprecated.
Prefer delegation over inheritance and use InputStreams.wye(InputStream, OutputStream) instead
WyeInputStream(InputStream, OutputStream) - Constructor for class de.unkrig.commons.io.WyeInputStream
Deprecated.
 
WyeReader - Class in de.unkrig.commons.io
Duplicates all bytes that it reads to a Writer.
WyeReader(Reader, Writer) - Constructor for class de.unkrig.commons.io.WyeReader
 

X

XMLFormatterWriter - Class in de.unkrig.commons.io
This FilterWriter scans the character stream for tags and inserts "artificial" line breaks as follows: <a><b Wrap between '>' and '<' and indent </a><b Wrap between '>' and '<' <a/><b Wrap between '>' and '<' </a></b Wrap between '>' and '<' and unindent <a/></b Wrap between '>' and '<' and unindent
XMLFormatterWriter(Writer) - Constructor for class de.unkrig.commons.io.XMLFormatterWriter
 

Z

ZERO - Static variable in class de.unkrig.commons.io.InputStreams
An input stream that reads an endless stream of zeros.
ZERO_INPUT_STREAM - Static variable in class de.unkrig.commons.io.IoUtil
Deprecated.
Use InputStreams.ZERO instead
A B C D E F G H I L M N O P R S T U V W X Z 

Copyright © 2018 Arno Unkrig. All rights reserved.