| 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.provider |
Providers of IO (allow to open IO on demand).
|
| net.lecousin.framework.io.util |
Utility classes for IO.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IO.Resizable
Add capability to resize the IO.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileIO
IO on a file, using one of the 3 sub-classes: FileIO.ReadOnly, FileIO.WriteOnly, FileIO.ReadWrite.
|
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 |
FragmentedSubIO.ReadWrite
Readable and Writable fragmented IO.
|
static class |
IOFromInputStream.KnownSize
Add the capability to get the size to IOFromInputStream.
|
static class |
LinkedIO.Readable.Buffered.DeterminedSize
Linked Readable Buffered IO and add the DeterminedSize capability.
|
static class |
LinkedIO.Readable.DeterminedSize
Linked Readable IO and add the DeterminedSize capability.
|
static class |
LinkedIO.Readable.Seekable.Buffered.DeterminedSize
Add the DeterminedSize capability.
|
static class |
LinkedIO.Readable.Seekable.DeterminedSize
Add the DeterminedSize capability.
|
class |
SubIO
Sub-part of an IO.
|
static class |
SubIO.Readable
Sub-part of a Readable IO.
|
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.
|
static class |
SubIO.ReadWrite
Sub-part of a Seekable Readable and Writable IO.
|
static class |
SubIO.Writable
Sub-part of a Writable IO.
|
static class |
SubIO.Writable.Seekable
Sub-part of a Seekable Writable IO.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends IO.Readable & IO.KnownSize> |
IOUtil.readFullyKnownSize(T io,
AsyncSupplier<byte[],IOException> result)
Read fully into a byte[], and unblock the given result upon completion.
|
| 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 |
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 | Method and Description |
|---|---|
<T extends IO.Readable & IO.KnownSize> |
IOProvider.Readable.KnownSize.provideIOReadableKnownSize(byte priority)
Provide a IO.Readable with KnownSize.
|
default <T extends IO.Readable & IO.KnownSize> |
IOProvider.Readable.Seekable.KnownSize.provideIOReadableKnownSize(byte priority) |
default <T extends IO.Readable & IO.KnownSize> |
IOProvider.ReadWrite.KnownSize.provideIOReadableKnownSize(byte priority) |
default <T extends IO.Readable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.provideIOReadableKnownSize(byte priority) |
<T extends IO.Readable.Seekable & IO.KnownSize> |
IOProvider.Readable.Seekable.KnownSize.provideIOReadableSeekableKnownSize(byte priority)
Provide a IO.Readable.Seekable with KnownSize.
|
default <T extends IO.Readable.Seekable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.provideIOReadableSeekableKnownSize(byte priority) |
<T extends IO.Readable.Seekable & IO.KnownSize> |
FileIOProvider.provideIOReadableSeekableKnownSize(byte priority) |
<T extends IO.Readable & IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.KnownSize.provideIOReadWriteKnownSize(byte priority) |
default <T extends IO.Readable & IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.KnownSize.Resizable.provideIOReadWriteKnownSize(byte priority) |
default <T extends IO.Readable & IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.provideIOReadWriteKnownSize(byte priority) |
default <T extends IO.Readable & IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.Resizable.provideIOReadWriteKnownSize(byte priority) |
<T extends IO.Readable.Seekable & IO.Writable.Seekable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.provideIOReadWriteSeekableKnownSize(byte priority) |
default <T extends IO.Readable.Seekable & IO.Writable.Seekable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.Resizable.provideIOReadWriteSeekableKnownSize(byte priority) |
<T extends IO.Readable.Seekable & IO.Writable.Seekable & IO.KnownSize> |
ByteArrayIOProvider.provideIOReadWriteSeekableKnownSize(byte priority) |
<T extends IO.Writable & IO.KnownSize> |
IOProvider.Writable.KnownSize.provideIOWritableKnownSize(byte priority)
Provide a IO.Writable with IO.KnownSize.
|
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.Writable.KnownSize.Resizable.provideIOWritableKnownSize(byte priority) |
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.Writable.Seekable.KnownSize.provideIOWritableKnownSize(byte priority) |
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.Writable.Seekable.KnownSize.Resizable.provideIOWritableKnownSize(byte priority) |
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.KnownSize.provideIOWritableKnownSize(byte priority) |
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.KnownSize.Resizable.provideIOWritableKnownSize(byte priority) |
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.provideIOWritableKnownSize(byte priority) |
default <T extends IO.Writable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.Resizable.provideIOWritableKnownSize(byte priority) |
<T extends IO.Writable.Seekable & IO.KnownSize> |
IOProvider.Writable.Seekable.KnownSize.provideIOWritableSeekableKnownSize(byte priority)
Provide a IO.Writable.Seekable with IO.KnownSize.
|
default <T extends IO.Writable.Seekable & IO.KnownSize> |
IOProvider.Writable.Seekable.KnownSize.Resizable.provideIOWritableSeekableKnownSize(byte priority) |
default <T extends IO.Writable.Seekable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.provideIOWritableSeekableKnownSize(byte priority) |
default <T extends IO.Writable.Seekable & IO.KnownSize> |
IOProvider.ReadWrite.Seekable.KnownSize.Resizable.provideIOWritableSeekableKnownSize(byte priority) |
| 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 © 2019. All rights reserved.