| Package | Description |
|---|---|
| net.lecousin.framework.io |
New java Input/Output model adding more flexibility and asynchronous operations.
|
| net.lecousin.framework.io.buffering |
IO with bufferization.
|
| net.lecousin.framework.io.out2in |
Implementations of IO.OutputToInput.
|
| net.lecousin.framework.io.util |
Utility classes for IO.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IO.Readable.Buffered
Indicates the IO is buffered, and add operations.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LinkedIO.Readable.Buffered
Linked Readable Buffered IO.
|
static class |
LinkedIO.Readable.Buffered.DeterminedSize
Linked Readable Buffered IO and add the DeterminedSize capability.
|
static class |
LinkedIO.Readable.Seekable.Buffered
Linked Readable, Seekable and Buffered IO.
|
static class |
LinkedIO.Readable.Seekable.Buffered.DeterminedSize
Add the DeterminedSize capability.
|
static class |
PositionKnownWrapper.Readable.Buffered
Add the capability to known on which position we are on a Buffered Readable.
|
static class |
SubIO.Readable.Seekable.Buffered
Sub-part of a Buffered Seekable Readable IO.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
IOUtil.readFully(IO.ReadableByteStream io,
byte[] buffer)
Fill the given buffer.
|
static int |
IOUtil.readFully(IO.ReadableByteStream io,
byte[] buffer,
int off,
int len)
Read the given number of bytes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BufferedIO
BufferedIO is often the best buffering implementation when we need both bufferization and seek operations.
|
static class |
BufferedIO.ReadWrite
Writable BufferedIO.
|
class |
BufferedReverseIOReading
IO that can read bytes backward.
|
class |
ByteArrayIO
IO implemented with a single byte array.
|
class |
ByteBuffersIO
Implementation of IO using a list of byte array.
|
class |
MemoryIO
Implementation of a seekable readable and writable IO, using an array of byte array.
|
class |
PreBufferedReadable
Often the best implementation when reading sequentially (streaming, without seek): it fills a first buffer
as soon as instantiated, once the first buffer is filled new buffers are pre-filled.
|
class |
ReadableToSeekable
Convert a Readable into a Seekable.
|
class |
SimpleBufferedReadable
This implementation of buffered readable IO use a simple buffering strategy, with 2 buffers:
while the first one is used, the second is filled in background.
|
class |
SingleBufferReadable
This is the less efficient buffered readable implementation: it uses a single buffer, which is filled only when first byte
is read (and so is blocking).
|
class |
TwoBuffersIO
Read an IO.Readable into 2 buffers, then those buffers can be read when ready.
|
static class |
TwoBuffersIO.DeterminedSize
Add DeterminedSize capability.
|
| Modifier and Type | Class and Description |
|---|---|
class |
OutputToInputBuffers
Implementation of IO.OutputToInput using a list of ByteBuffer, that are stored in memory while
writing, and removed while reading them.
Optionally a maximum number of pending buffers can be specified. |
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyReadable
Implement an empty Readable IO, with Buffered, Seekable and KnownSize capabilities.
|
class |
NonBufferedReadableIOAsBuffered
Utility class to implement the Buffered interface even in case buffers cannot be used.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
DataUtil.readIntegerBigEndian(IO.ReadableByteStream io)
big-endian or motorola format.
|
static int |
DataUtil.readIntegerLittleEndian(IO.ReadableByteStream io)
little-endian or intel format.
|
static long |
DataUtil.readLongBigEndian(IO.ReadableByteStream io)
big-endian or motorola format.
|
static long |
DataUtil.readLongLittleEndian(IO.ReadableByteStream io)
little-endian or intel format.
|
static short |
DataUtil.readShortBigEndian(IO.ReadableByteStream io)
big-endian or motorola format.
|
static short |
DataUtil.readShortLittleEndian(IO.ReadableByteStream io)
little-endian or intel format.
|
static int |
DataUtil.readUnsignedInteger24BitsBigEndian(IO.ReadableByteStream io)
big-endian or motorola format.
|
static int |
DataUtil.readUnsignedInteger24BitsLittleEndian(IO.ReadableByteStream io)
little-endian or intel format.
|
static long |
DataUtil.readUnsignedIntegerBigEndian(IO.ReadableByteStream io)
big-endian or motorola format.
|
static long |
DataUtil.readUnsignedIntegerLittleEndian(IO.ReadableByteStream io)
little-endian or intel format.
|
static int |
DataUtil.readUnsignedShortBigEndian(IO.ReadableByteStream io)
big-endian or motorola format.
|
static int |
DataUtil.readUnsignedShortLittleEndian(IO.ReadableByteStream io)
little-endian or intel format.
|
Copyright © 2019. All rights reserved.