- ChunkInputStream - Class in com.gc.iotools.stream.is
-
This class is useful when you have an InputStream
and you want
to filter some parts of it basing on its content without reading it into
memory.
- ChunkInputStream(InputStream, byte[], byte[]) - Constructor for class com.gc.iotools.stream.is.ChunkInputStream
-
Constructs a ChunkInputStream
.
- ChunkInputStream(InputStream, byte[], byte[], boolean, boolean) - Constructor for class com.gc.iotools.stream.is.ChunkInputStream
-
Gets an instance of the ChunkInputStream.
- cleanup() - Method in class com.gc.iotools.stream.store.MemoryStore
-
Cleans up the Store.
- cleanup() - Method in class com.gc.iotools.stream.store.OnOffStore
-
Cleans up the Store.
- cleanup() - Method in interface com.gc.iotools.stream.store.Store
-
Cleans up the Store.
- cleanup() - Method in class com.gc.iotools.stream.store.ThresholdStore
-
Cleans up the Store.
- clearInstanceWarnings() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
clearInstanceWarnings
- clearInstanceWarnings() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
clearInstanceWarnings
- close() - Method in class com.gc.iotools.stream.base.AbstractInputStreamWrapper
- close() - Method in class com.gc.iotools.stream.is.ChunkInputStream
-
.
- close() - Method in class com.gc.iotools.stream.is.CloseOnceInputStream
- close() - Method in class com.gc.iotools.stream.is.debug.DataGeneratorInputStream
-
- close() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
- close() - Method in class com.gc.iotools.stream.is.InputStreamFromOutputStream
- close() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Closes the inner stream.
- close() - Method in class com.gc.iotools.stream.os.CloseOnceOutputStream
- close() - Method in class com.gc.iotools.stream.os.debug.OutputStreamDumper
- close() - Method in class com.gc.iotools.stream.os.OutputStreamToInputStream
- close(long, TimeUnit) - Method in class com.gc.iotools.stream.os.OutputStreamToInputStream
-
When this method is called the internal thread is always waited for
completion.
- close() - Method in class com.gc.iotools.stream.os.StatsOutputStream
- close() - Method in class com.gc.iotools.stream.os.TeeOutputStream
- close() - Method in class com.gc.iotools.stream.reader.CloseOnceReader
- close() - Method in class com.gc.iotools.stream.reader.CloseShieldReader
- close() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
- close() - Method in class com.gc.iotools.stream.reader.ReaderFromWriter
- close() - Method in class com.gc.iotools.stream.reader.SizeLimitReader
-
Close the underlying stream.
- close() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Closes the inner stream.
- close() - Method in class com.gc.iotools.stream.reader.TeeReaderWriter
- close() - Method in class com.gc.iotools.stream.writer.CloseOnceWriter
- close() - Method in class com.gc.iotools.stream.writer.CloseShieldWriter
- close() - Method in class com.gc.iotools.stream.writer.debug.WriterDumper
- close() - Method in class com.gc.iotools.stream.writer.SizeLimitReader
-
Close the underlying stream.
- close() - Method in class com.gc.iotools.stream.writer.StatsWriter
- close() - Method in class com.gc.iotools.stream.writer.TeeWriter
- close() - Method in class com.gc.iotools.stream.writer.WriterToReader
- close(long, TimeUnit) - Method in class com.gc.iotools.stream.writer.WriterToReader
-
When this method is called the internal thread is always waited for
completion.
- closeCalled - Variable in class com.gc.iotools.stream.base.AbstractInputStreamWrapper
-
- closeCalled - Variable in class com.gc.iotools.stream.os.TeeOutputStream
-
- closeCalled - Variable in class com.gc.iotools.stream.writer.TeeWriter
-
- closeOnce() - Method in class com.gc.iotools.stream.base.AbstractInputStreamWrapper
-
closeOnce
- closeOnce() - Method in class com.gc.iotools.stream.is.RandomAccessInputStream
-
closeOnce
- closeOnce() - Method in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
closeOnce
- CloseOnceInputStream<T extends InputStream> - Class in com.gc.iotools.stream.is
-
A CloseOnceInputStream
contains some other input stream, which
it uses as its basic source of data.
- CloseOnceInputStream(T) - Constructor for class com.gc.iotools.stream.is.CloseOnceInputStream
-
Construct a CloseOnceInputStream
that forwards the calls
to the source InputStream passed in the constructor.
- CloseOnceOutputStream<T extends OutputStream> - Class in com.gc.iotools.stream.os
-
- CloseOnceOutputStream(T) - Constructor for class com.gc.iotools.stream.os.CloseOnceOutputStream
-
Construct a CloseOnceOutputStream
that forwards the calls to
the source OutputStream passed in the constructor.
- CloseOnceReader<T extends Reader> - Class in com.gc.iotools.stream.reader
-
A CloseOnceReader
wraps some other Reader
, which it
uses as its basic source of data.
- CloseOnceReader(T) - Constructor for class com.gc.iotools.stream.reader.CloseOnceReader
-
Construct a CloseOnceReader
that forwards the calls to the
source Reader passed in the constructor.
- CloseOnceWriter<T extends Writer> - Class in com.gc.iotools.stream.writer
-
- CloseOnceWriter(T) - Constructor for class com.gc.iotools.stream.writer.CloseOnceWriter
-
Construct a CloseOnceWriter
that forwards the calls to the
source Writer passed in the constructor.
- CloseShieldReader<T extends Reader> - Class in com.gc.iotools.stream.reader
-
A CloseShieldReader
wraps some other Reader
,
which it uses as its basic source of data.
- CloseShieldReader(T) - Constructor for class com.gc.iotools.stream.reader.CloseShieldReader
-
Construct a CloseShieldReader
that forwards the calls to
the source Reader passed in the constructor.
- CloseShieldWriter<T extends Writer> - Class in com.gc.iotools.stream.writer
-
A CloseShieldWriter
wraps some other Writer
, which
it uses as its basic sink of data.
- CloseShieldWriter(T) - Constructor for class com.gc.iotools.stream.writer.CloseShieldWriter
-
Construct a CloseShieldWriter
that forwards the calls to the
source Writer passed in the constructor.
- closeStreams - Variable in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
- closeStreams - Variable in class com.gc.iotools.stream.reader.TeeReaderWriter
-
- com.gc.iotools.stream.base - package com.gc.iotools.stream.base
-
Base classes and Enumerations.
- com.gc.iotools.stream.is - package com.gc.iotools.stream.is
-
Provides classes that extends java.io.InputStream.
- com.gc.iotools.stream.is.debug - package com.gc.iotools.stream.is.debug
-
Provides classes useful to debugg InputStream(s).
- com.gc.iotools.stream.os - package com.gc.iotools.stream.os
-
Provides classes that extends java.io.OutputStream.
- com.gc.iotools.stream.os.debug - package com.gc.iotools.stream.os.debug
-
Provides classes useful to gather statistics or debugging OutputStream(s).
- com.gc.iotools.stream.reader - package com.gc.iotools.stream.reader
-
Provides classes that extends java.io.Reader.
- com.gc.iotools.stream.reader.debug - package com.gc.iotools.stream.reader.debug
-
- com.gc.iotools.stream.store - package com.gc.iotools.stream.store
-
Provides strategies to buffer data used along the application.
- com.gc.iotools.stream.utils - package com.gc.iotools.stream.utils
-
Provides miscellaneous utilities.
- com.gc.iotools.stream.writer - package com.gc.iotools.stream.writer
-
Provides classes that extends java.io.Writer.
- com.gc.iotools.stream.writer.debug - package com.gc.iotools.stream.writer.debug
-
- convert(long, ByteUnit) - Static method in enum com.gc.iotools.stream.base.ByteUnit
-
- copyEnabled - Variable in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
- copyEnabled - Variable in class com.gc.iotools.stream.reader.TeeReaderWriter
-
- currentPosition - Variable in class com.gc.iotools.stream.reader.SizeLimitReader
-
- currentPosition - Variable in class com.gc.iotools.stream.writer.SizeLimitReader
-
- get(byte[], int, int) - Method in class com.gc.iotools.stream.store.MemoryStore
-
gets length
bytes from the store.
- get(byte[], int, int) - Method in class com.gc.iotools.stream.store.OnOffStore
-
gets length
bytes from the store.
- get(byte[], int, int) - Method in interface com.gc.iotools.stream.store.Store
-
gets length
bytes from the store.
- get(byte[], int, int) - Method in class com.gc.iotools.stream.store.ThresholdStore
-
gets length
bytes from the store.
- getActiveThreadNames() - Static method in class com.gc.iotools.stream.is.InputStreamFromOutputStream
-
This method can be used for debugging purposes to get a list of the
currently active threads.
- getActiveThreadNames() - Static method in class com.gc.iotools.stream.reader.ReaderFromWriter
-
This method can be used for debugging purposes to get a list of the
currently active threads.
- getAverageBytePerRead() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the average bytes per read.
- getAverageBytePerRead() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the average bytes per read.
- getBitRate() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the reading bit rate in KB per second of this single instance.
- getBitRate() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the reading bit rate in KB per second of this single instance.
- getBitRateString() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the reading bit rate formatted with a convenient unit.
- getBitRateString() - Method in class com.gc.iotools.stream.os.StatsOutputStream
-
Returns a string representation of the writing bit rate formatted with
a convenient unit.
- getBitRateString() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the reading bit rate formatted with a convenient unit.
- getBitRateString() - Method in class com.gc.iotools.stream.writer.StatsWriter
-
Returns a string representation of the writing bit rate formatted with a
convenient unit.
- getBytes() - Method in enum com.gc.iotools.stream.base.ByteUnit
-
- getBytesLeft() - Method in class com.gc.iotools.stream.reader.SizeLimitReader
-
Get the maximum number of bytes left to read before the limit, set in
the constructor, is reached.
- getBytesLeft() - Method in class com.gc.iotools.stream.writer.SizeLimitReader
-
Get the maximum number of characters left to read before the limit, set
in the constructor, is reached.
- getBytesRead() - Method in class com.gc.iotools.stream.reader.SizeLimitReader
-
Get the number of bytes actually read from this stream.
- getBytesRead() - Method in class com.gc.iotools.stream.writer.SizeLimitReader
-
Get the number of characters actually read from this stream.
- getCaller(Class<?>) - Static method in class com.gc.iotools.stream.utils.LogUtils
-
Returns the caller of the class passed as an argument.
- getCaller(Class<?>, int) - Static method in class com.gc.iotools.stream.utils.LogUtils
-
Returns the caller stack of the class passed as an argument.
- getCategories() - Static method in class com.gc.iotools.stream.base.BaseGlobalStats
-
Returns the set of categories defined for this stream (defined with the
parameter groupCategory in the constructor.
- getCategories() - Static method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the set of categories defined for this stream (defined with the
parameter groupCategory in the constructor.
- getCategories() - Static method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the set of categories defined for this stream (defined with the
parameter groupCategory in the constructor.
- getCloseCount() - Method in class com.gc.iotools.stream.is.CloseOnceInputStream
-
Returns the number of time that close was called.
- getCloseCount() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
Returns the number of times that close was called on this stream.
- getCloseCount() - Method in class com.gc.iotools.stream.os.CloseOnceOutputStream
-
Returns the number of time that close was called.
- getCloseCount() - Method in class com.gc.iotools.stream.reader.CloseOnceReader
-
Returns the number of time that close was called.
- getCloseCount() - Method in class com.gc.iotools.stream.reader.CloseShieldReader
-
Returns the number of time that close was called.
- getCloseCount() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
Returns the number of times that close was called on this stream.
- getCloseCount() - Method in class com.gc.iotools.stream.writer.CloseOnceWriter
-
Returns the number of time that close was called.
- getCloseCount() - Method in class com.gc.iotools.stream.writer.CloseShieldWriter
-
Returns the number of time that close was called.
- getContent() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
Return the current captured bytes, if capture was enabled.
- getContent() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
Return the current captured bytes, if capture was enabled.
- getData() - Method in class com.gc.iotools.stream.os.debug.OutputStreamDumper
-
Returns the data that was written until now to the internal byte array.
- getData() - Method in class com.gc.iotools.stream.writer.debug.WriterDumper
-
Returns the data that was written until now to the internal character
buffer.
- getDestinationStreams() - Method in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Returns the OutputStream
(s) passed in the constructor.
- getDestinationStreams() - Method in class com.gc.iotools.stream.os.TeeOutputStream
-
Returns the OutputStream
(s) passed in the constructor.
- getElapsedTime(TimeUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the time elapsed since this instance was constructed.
- getElapsedTime(TimeUnit) - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the time elapsed since this instance was constructed.
- getExecutor(ExecutionModel) - Static method in class com.gc.iotools.stream.base.ExecutorServiceFactory
-
Getter for the field executor
.
- getFinalizationErrors() - Static method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
Returns an array of descriptions of finalization errors.
- getFinalizationErrors() - Static method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
Returns an array of descriptions of finalization errors.
- getInstanceWarnings() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
getInstanceWarnings
- getInstanceWarnings() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
getInstanceWarnings
- getInternalOverTotalTime() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
This method return a ratio between the time spent by the internal
InputStream
waiting for I/O over the total time since this
class was instantiated.
- getInternalOverTotalTime() - Method in class com.gc.iotools.stream.reader.StatsReader
-
This method return a ratio between the time spent by the internal
InputStream
waiting for I/O over the total time since this
class was instantiated.
- getIOBitRate(ByteUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the read speed of this single instance.
- getIOCharRate(ByteUnit) - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the read speed of this single instance.
- getIOTime(TimeUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the time spent until now waiting for the internal stream to
respond.
- getIOTime(TimeUnit) - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the time spent until now waiting for the internal stream to
respond.
- getMaxSize() - Method in class com.gc.iotools.stream.reader.SizeLimitReader
-
Get the number of total bytes (including bytes already read) that can
be read from this stream (as set in the constructor).
- getMaxSize() - Method in class com.gc.iotools.stream.writer.SizeLimitReader
-
Get the number of total characters (including characters already read)
that can be read from this stream (as set in the constructor).
- getNumberRead() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Number of calls to int read()
,
int read(byte[])
and int read(byte[],int,int)
methods.
- getNumberRead() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Number of calls to int read()
,
int read(byte[])
and int read(byte[],int,int)
methods.
- getPosition() - Method in class com.gc.iotools.stream.store.MemoryStore
-
Getter for the field position
.
- getRateString(long, long) - Static method in class com.gc.iotools.stream.utils.StreamUtils
-
Returns a string representing the transfer rate.
- getRateString(long, long, Locale) - Static method in class com.gc.iotools.stream.utils.StreamUtils
-
Returns a string representing the transfer rate.
- getReadTime() - Method in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Returns the number of milliseconds spent reading from the
source
InputStream
.
- getReadTime() - Method in class com.gc.iotools.stream.reader.TeeReaderWriter
-
Returns the number of milliseconds spent reading from the
source
Reader
.
- getResult() - Method in class com.gc.iotools.stream.is.InputStreamFromOutputStream
-
- getResult() - Method in class com.gc.iotools.stream.os.OutputStreamToInputStream
-
- getResult() - Method in class com.gc.iotools.stream.reader.ReaderFromWriter
-
- getResults() - Method in class com.gc.iotools.stream.writer.WriterToReader
-
- getSize() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the number of bytes read until now from the internal
InputStream
or total length of the stream if the
StatsInputStream.close()
method has been called or EOF was reached.
- getSize() - Method in class com.gc.iotools.stream.os.StatsOutputStream
-
Returns the number of bytes written until now.
- getSize() - Method in class com.gc.iotools.stream.os.TeeOutputStream
-
This method returns the size in bytes of the data written to this
OutputStream.
- getSize() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the number of bytes read until now from the internal
Reader
or total length of the stream if the
StatsReader.close()
method has been called or EOF was reached.
- getSize() - Method in class com.gc.iotools.stream.store.ThresholdStore
-
Getter for the field size
.
- getSize() - Method in class com.gc.iotools.stream.writer.StatsWriter
-
Returns the number of characters written until now.
- getSize() - Method in class com.gc.iotools.stream.writer.TeeWriter
-
This method returns the size in bytes of the data written to this
Writer.
- getStatusMessage() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
Returns a string representation of the usage errors of the stream until
now.
- getStatusMessage() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
Returns a string representation of the usage errors of the stream until
now.
- getStore() - Method in class com.gc.iotools.stream.is.RandomAccessInputStream
-
Return the underlying store where the cache of data is kept.
- getTime() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the time (in milliseconds) spent until now waiting for reading
from the internal InputStream
.
- getTime(TimeUnit) - Method in class com.gc.iotools.stream.os.StatsOutputStream
-
Returns the time spent waiting for the internal stream to write the
data.
- getTime() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the time (in milliseconds) spent until now waiting for reading
from the internal Reader
.
- getTime(TimeUnit) - Method in class com.gc.iotools.stream.writer.StatsWriter
-
Returns the time spent waiting for the internal stream to write the data.
- getTotalDataRead(ByteUnit) - Method in class com.gc.iotools.stream.base.BaseGlobalStats
-
- getTotalDataRead(ByteUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Total number of bytes read made by this instance over the subsequent
calls.
- getTotalDataRead(ByteUnit) - Method in class com.gc.iotools.stream.reader.StatsReader
-
Total number of characters read by this instance over the subsequent
calls.
- getTotalElapsedTime(TimeUnit) - Method in class com.gc.iotools.stream.base.BaseGlobalStats
-
- getTotalElapsedTime(TimeUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the total time of the instance activity (the time elapsed from
the constructor call to the close()
method.
- getTotalElapsedTime(TimeUnit) - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the time spent until now waiting for the internal stream to
respond.
- getTotalIOTime(TimeUnit) - Method in class com.gc.iotools.stream.base.BaseGlobalStats
-
- getTotalIOTime(TimeUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Returns the total time spent waiting for IO operations from all the
instances of the StatsInputStream
.
- getTotalIOTime(TimeUnit) - Method in class com.gc.iotools.stream.reader.StatsReader
-
Returns the total time spent until now waiting for
reading from the internal Reader
by the instances
(identified by their constructor position).
- getTotalNumberRead() - Method in class com.gc.iotools.stream.base.BaseGlobalStats
-
Total count of calls to int read()
,
int read(byte[])
and int read(byte[],int,int)
methods, made by this instance over the subsequent calls.
- getTotalNumberRead() - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Total count of calls to int read()
,
int read(byte[])
and int read(byte[],int,int)
methods, made by this instance over the subsequent calls.
- getTotalNumberRead() - Method in class com.gc.iotools.stream.reader.StatsReader
-
Total count of calls to int read()
,
int read(byte[])
and int read(byte[],int,int)
methods, made by this instance over the subsequent calls.
- getTotalTime(TimeUnit) - Method in class com.gc.iotools.stream.is.StatsInputStream
-
Deprecated.
- getTreshold() - Method in class com.gc.iotools.stream.store.ThresholdStore
-
Getter for the field treshold
.
- getWrappedInputStream() - Method in class com.gc.iotools.stream.is.CloseOnceInputStream
-
Returns the wrapped (original) InputStream
passed in the
constructor.
- getWrappedInputStream() - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
Returns the wrapped (original) InputStream
passed in the
constructor.
- getWrappedOutputStream() - Method in class com.gc.iotools.stream.os.CloseOnceOutputStream
-
Returns the wrapped (original) OutputStream
passed in the
constructor.
- getWrappedReader() - Method in class com.gc.iotools.stream.reader.CloseOnceReader
-
Returns the wrapped (original) Reader
passed in the
constructor.
- getWrappedReader() - Method in class com.gc.iotools.stream.reader.CloseShieldReader
-
Returns the wrapped (original) Reader
passed in the
constructor.
- getWrappedReader() - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
Returns the wrapped (original) Reader
passed in the
constructor.
- getWrappedStream() - Method in class com.gc.iotools.stream.os.debug.OutputStreamDumper
-
Returns the wrapped (original) OutputStream
passed in the
constructor.
- getWrappedStream() - Method in class com.gc.iotools.stream.writer.debug.WriterDumper
-
Returns the wrapped (original) Writer
passed in the
constructor.
- getWrappedWriter() - Method in class com.gc.iotools.stream.writer.CloseOnceWriter
-
Returns the wrapped (original) Writer
passed in the
constructor.
- getWrappedWriter() - Method in class com.gc.iotools.stream.writer.CloseShieldWriter
-
Returns the wrapped (original) Writer
passed in the
constructor.
- getWriteSize() - Method in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Returns the number of bytes written until now to a single destination
OutputStream
.
- getWriteSize() - Method in class com.gc.iotools.stream.reader.TeeReaderWriter
-
Returns the number of bytes written until now to a single destination
Writer
.
- getWriteTime() - Method in class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Return the time spent writing on the destination
OutputStream(s)
in milliseconds.
- getWriteTime() - Method in class com.gc.iotools.stream.os.TeeOutputStream
-
Return the time spent writing to the destination
OutputStream(s)
in milliseconds.
- getWriteTime() - Method in class com.gc.iotools.stream.reader.TeeReaderWriter
-
Return the time spent writing on the destination Writer(s)
in milliseconds.
- getWriteTime() - Method in class com.gc.iotools.stream.writer.TeeWriter
-
Return the time spent writing to the destination Writer(s)
in milliseconds.
- seek(long) - Method in class com.gc.iotools.stream.is.RandomAccessInputStream
-
Reposition the read pointer in the stream.
- seek(long) - Method in class com.gc.iotools.stream.store.MemoryStore
-
Reposition this Store
on a previously read position.
- seek(long) - Method in class com.gc.iotools.stream.store.OnOffStore
-
Reposition this Store
on a previously read position.
- seek(long) - Method in interface com.gc.iotools.stream.store.SeekableStore
-
Reposition this Store
on a previously read position.
- seek(long) - Method in class com.gc.iotools.stream.store.ThresholdStore
-
Reposition this Store
on a previously read position.
- SeekableStore - Interface in com.gc.iotools.stream.store
-
Represents a Store
that can be seeked to a random position.
- setDefaultLogDepth(int) - Static method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
-
Setter for the field defaultLogDepth
.
- setDefaultLogDepth(int) - Static method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
-
Setter for the field defaultLogDepth
.
- setDefaultPipeSize(int) - Static method in class com.gc.iotools.stream.is.InputStreamFromOutputStream
-
Set the size for the pipe buffer for the newly created
InputStreamFromOutputStream
.
- setDefaultPipeSize(int) - Static method in class com.gc.iotools.stream.os.OutputStreamToInputStream
-
Set the size for the pipe circular buffer.
- setDefaultPipeSize(int) - Static method in class com.gc.iotools.stream.reader.ReaderFromWriter
-
Set the size for the pipe circular buffer for the newly created
ReaderFromWriter
.
- setDefaultPipeSize(int) - Static method in class com.gc.iotools.stream.writer.WriterToReader
-
Set the size for the pipe circular buffer.
- setDefaultThreadPoolExecutor(ExecutorService) - Static method in class com.gc.iotools.stream.base.ExecutorServiceFactory
-
- setPosition(long) - Method in class com.gc.iotools.stream.store.ThresholdStore
-
Setter for the field position
.
- setStore(Store) - Method in class com.gc.iotools.stream.is.RandomAccessInputStream
-
Setter for the field store
.
- shutDown() - Static method in class com.gc.iotools.stream.base.ExecutorServiceFactory
-
Call this method to finalize the execution queue.
- SizeLimitReader - Class in com.gc.iotools.stream.reader
-
A
Reader
wrapper that will read only a definite number of
bytes from the underlying stream.
- SizeLimitReader(Reader, long) - Constructor for class com.gc.iotools.stream.reader.SizeLimitReader
-
Create a new SizeLimitReader
from another stream given a
size limit.
- SizeLimitReader - Class in com.gc.iotools.stream.writer
-
A Reader
wrapper that will read only a definite number of
characters from the underlying stream.
- SizeLimitReader(Reader, long) - Constructor for class com.gc.iotools.stream.writer.SizeLimitReader
-
Create a new SizeLimitInputStream
from another stream given
a size limit.
- skip(long) - Method in class com.gc.iotools.stream.base.AbstractInputStreamWrapper
- skip(long) - Method in class com.gc.iotools.stream.is.ChunkInputStream
-
.
- skip(long) - Method in class com.gc.iotools.stream.is.debug.DiagnosticInputStream
- skip(long) - Method in class com.gc.iotools.stream.is.StatsInputStream
- skip(long) - Method in class com.gc.iotools.stream.reader.debug.DiagnosticReader
- skip(long) - Method in class com.gc.iotools.stream.reader.ReaderFromWriter
- skip(long) - Method in class com.gc.iotools.stream.reader.SizeLimitReader
- skip(long) - Method in class com.gc.iotools.stream.reader.StatsReader
- skip(long) - Method in class com.gc.iotools.stream.writer.SizeLimitReader
- SKIP_BUFFER_SIZE - Static variable in class com.gc.iotools.stream.base.EasyStreamConstants
-
Default skip size.
- source - Variable in class com.gc.iotools.stream.base.AbstractInputStreamWrapper
-
- source - Variable in class com.gc.iotools.stream.reader.TeeReaderWriter
-
The source Reader
where the data comes from.
- sourcePosition - Variable in class com.gc.iotools.stream.is.RandomAccessInputStream
-
Position of reading in the source stream.
- StatsInputStream - Class in com.gc.iotools.stream.is
-
An InputStream wrapper that gather statistics about the
InputStream
passed in the constructor.
- StatsInputStream(InputStream) - Constructor for class com.gc.iotools.stream.is.StatsInputStream
-
Constructs an SizeReaderInputStream
.
- StatsInputStream(InputStream, boolean) - Constructor for class com.gc.iotools.stream.is.StatsInputStream
-
Constructs an SizeReaderInputStream
and allow to specify
actions to do on close.
- StatsInputStream(InputStream, boolean, boolean) - Constructor for class com.gc.iotools.stream.is.StatsInputStream
-
Constructs an SizeReaderInputStream
and allow to specify
actions to do on close.
- StatsInputStream(InputStream, boolean, boolean, String) - Constructor for class com.gc.iotools.stream.is.StatsInputStream
-
Constructs an SizeReaderInputStream
and allow to specify a
key for regrouping the global statistics.
- StatsInputStream(InputStream, boolean, boolean, String, StatsInputStream) - Constructor for class com.gc.iotools.stream.is.StatsInputStream
-
Constructs an SizeReaderInputStream
.
- StatsOutputStream - Class in com.gc.iotools.stream.os
-
Gather some statistics on the OutputStream
passed in the
constructor.
- StatsOutputStream(OutputStream) - Constructor for class com.gc.iotools.stream.os.StatsOutputStream
-
Creates a new SizeRecorderOutputStream
with the given
destination stream.
- StatsReader - Class in com.gc.iotools.stream.reader
-
Gather some statistics of the Reader
passed in the constructor.
- StatsReader(Reader) - Constructor for class com.gc.iotools.stream.reader.StatsReader
-
Constructs an SizeReaderReader
.
- StatsReader(Reader, boolean) - Constructor for class com.gc.iotools.stream.reader.StatsReader
-
Constructs an SizeReaderReader
and allow to specify actions
to do on close.
- StatsReader(Reader, boolean, boolean) - Constructor for class com.gc.iotools.stream.reader.StatsReader
-
Constructs an SizeReaderReader
and allow to specify actions
to do on close.
- StatsReader(Reader, boolean, boolean, String, StatsReader) - Constructor for class com.gc.iotools.stream.reader.StatsReader
-
Constructs an SizeReaderReader
and allow to specify actions
to do on close.
- StatsWriter - Class in com.gc.iotools.stream.writer
-
A delegating Writer
that gather statistics on the
Writer
passed in the constructor.
- StatsWriter(Writer) - Constructor for class com.gc.iotools.stream.writer.StatsWriter
-
Creates a new StatsWriter
with the given destination
character stream.
- Store - Interface in com.gc.iotools.stream.store
-
Represent a place where bytes are memorized.
- StreamUtils - Class in com.gc.iotools.stream.utils
-
General utilities for handling streams.
- subarray(byte[], int, int) - Static method in class com.gc.iotools.stream.utils.ArrayTools
-
- TeeInputStreamOutputStream - Class in com.gc.iotools.stream.is
-
Copies the data from the underlying InputStream
to the
OutputStream(s)
passed in the constructor.
- TeeInputStreamOutputStream(InputStream, boolean, OutputStream...) - Constructor for class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Creates a TeeInputStreamOutputStream
and saves its
argument, the input stream source
and the output stream
destination
for later use.
- TeeInputStreamOutputStream(InputStream, OutputStream) - Constructor for class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Creates a TeeOutputStream
and saves its argument, the
input stream source
and the OutputStream
destination
for later use.
- TeeInputStreamOutputStream(InputStream, OutputStream, boolean) - Constructor for class com.gc.iotools.stream.is.TeeInputStreamOutputStream
-
Creates a TeeOutputStream
and saves its argument, the
input stream source
and the output stream
destination
for later use.
- TeeOutputStream - Class in com.gc.iotools.stream.os
-
Copies the data that is written to this class to the array of
OutputStream
passed in the constructor, allowing to write to
multiple OutputStream
at once.
- TeeOutputStream(OutputStream...) - Constructor for class com.gc.iotools.stream.os.TeeOutputStream
-
Creates a TeeOutputStream
and saves its arguments, the
destinations
for later use.
- TeeReaderWriter - Class in com.gc.iotools.stream.reader
-
Copies the data from the underlying Reader
to the
Writer(s)
passed in the constructor.
- TeeReaderWriter(Reader, boolean, Writer...) - Constructor for class com.gc.iotools.stream.reader.TeeReaderWriter
-
Creates a TeeInputStreamWriter
and saves its argument, the
input stream source
and the output stream
destination
for later use.
- TeeReaderWriter(Reader, Writer) - Constructor for class com.gc.iotools.stream.reader.TeeReaderWriter
-
Creates a TeeReaderWriter
and saves its argument, the
input stream source
and the Writer
destination
for later use.
- TeeReaderWriter(Reader, Writer, boolean) - Constructor for class com.gc.iotools.stream.reader.TeeReaderWriter
-
Creates a TeeReaderWriter
and saves its argument, the
input stream source
and the output stream
destination
for later use.
- TeeWriter - Class in com.gc.iotools.stream.writer
-
Copies the data that is written to this class to the Writer(s)
passed in the constructor.
- TeeWriter(Writer...) - Constructor for class com.gc.iotools.stream.writer.TeeWriter
-
Creates a TeeWriter
and saves its arguments, the
destinations
for later use.
- ThresholdStore - Class in com.gc.iotools.stream.store
-
Store that puts data in memory until threshold size is reach.
- ThresholdStore(int) - Constructor for class com.gc.iotools.stream.store.ThresholdStore
-
Constructor for ThresholdStore.
- ThresholdStore(int, File) - Constructor for class com.gc.iotools.stream.store.ThresholdStore
-
Constructor for ThresholdStore.
- toString() - Method in class com.gc.iotools.stream.is.RandomAccessInputStream
-
Provides a String representation of the state of the stream for debugging
purposes.
- toString() - Method in class com.gc.iotools.stream.store.MemoryStore
-
Provides a String representation of the state of the Store for
debugging purposes.
- toString() - Method in class com.gc.iotools.stream.store.ThresholdStore
-
Provides a String representation of the state of the
Store for debugging purposes.
- tryReadFully(InputStream, byte[], int, int) - Static method in class com.gc.iotools.stream.utils.StreamUtils
-
Read bytes from the source InputStream into the
buffer
.