| 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.Seekable
Add read operations to read at a specific position.
|
static interface |
IO.Seekable
Capability to set the position on an IO.
|
static interface |
IO.Writable.Seekable
Add operations to write at a specific position.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
FileIO.ReadOnly
FileIO in read-only mode.
|
static class |
FileIO.ReadWrite
FileIO with read and write operations.
|
static class |
FileIO.WriteOnly
FileIO in write-only mode.
|
class |
FragmentedSubIO
A fragmented sub-IO allows to specify a list of fragments inside a seekable IO, and does like those fragments are a contiguous IO.
|
static class |
FragmentedSubIO.Readable
Readable fragmented IO.
|
static class |
LinkedIO.Readable.Seekable
Linked Readable Seekable IO.
|
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 |
LinkedIO.Readable.Seekable.DeterminedSize
Add the DeterminedSize capability.
|
class |
PositionKnownWrapper<IOType extends IO>
Add the capability to known on which position we are on an IO.
|
static class |
PositionKnownWrapper.Readable
Add the capability to known on which position we are on a Readable.
|
static class |
PositionKnownWrapper.Readable.Buffered
Add the capability to known on which position we are on a Buffered Readable.
|
static class |
SubIO.Readable.Seekable
Sub-part of a Seekable Readable IO.
|
static class |
SubIO.Readable.Seekable.Buffered
Sub-part of a Buffered Seekable Readable IO.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BufferedIO.ReadOnly
Read-only implementation of BufferedIO.
|
static class |
BufferedIO.ReadWrite
Read and write implementation of BufferedIO.
|
class |
ByteArrayIO
IO implemented with a single byte array.
|
class |
ByteBuffersIO
Implementation of IO using a list of byte array.
|
class |
IOInMemoryOrFile
Store data first in memory, then if exceeding a given amount of memory, store the remaining
data in a file.
This can be used when the amount of data is not known, and we want to keep good performance with small data (all in memory), but do not allocate too much memory when having large data. A typical usage is when a server is receiving an uploaded file, and the size is not known in advance. This IO is writable and readable: the written data are readable. |
class |
MemoryIO
Implementation of a seekable readable and writable IO, using an array of byte array.
|
class |
ReadableToSeekable
Convert a Readable into a Seekable.
|
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 |
OutputToInput
Implementation of IO.OutputToInput using the given IO.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyReadable
Implement an empty Readable IO, with Buffered, Seekable and KnownSize capabilities.
|
class |
ReadableSeekableToDeterminedSize
Add the KnownSize capability: to determine the size, we can seek to the end and get the position.
|
Copyright © 2017. All rights reserved.