Package it.unimi.dsi.fastutil.io
Provides classes and static methods that make object and primitive-type I/O easier and faster.
PackageSpecificaton
Classes in this package provide very efficient, unsynchronised buffered input and output stream (with support for repositioning, too) and fast streams based on byte arrays. Static containers provide instead a wealth of methods that can be used to serialize/deserialize very easily objects and arrays.
-
Interface Summary Interface Description MeasurableStream An stream that provides eager access to its length, and keeps track of the current position (e.g., the number of bytes read so far, or the current position of the file pointer).RepositionableStream A basic interface specifying positioning methods for a byte stream. -
Class Summary Class Description BinIO Provides static methods to perform easily binary I/O.FastBufferedInputStream Lightweight, unsynchronized, aligned input stream buffering class with true skipping, measurability, repositionability and line reading support.FastBufferedOutputStream Lightweight, unsynchronized output stream buffering class with measurability and repositionability.FastByteArrayInputStream Simple, fast and repositionable byte-array input stream.FastByteArrayOutputStream Simple, fast byte-array output stream that exposes the backing array.FastMultiByteArrayInputStream Simple, fast and repositionable byte array input stream that multiplexes its content among several arrays.InspectableFileCachedInputStream A repositionableMeasurableInputStream
based on cached data received by aWritableByteChannel
whose first bytes can be inspected directly.MeasurableInputStream AnInputStream
that implements also theMeasurableStream
interface.MeasurableOutputStream AnOutputStream
that implements also theMeasurableStream
interface.TextIO Provides static methods to perform easily textual I/O. -
Enum Summary Enum Description FastBufferedInputStream.LineTerminator An enumeration of the supported line terminators.