| Package | Description |
|---|---|
| net.lecousin.framework.concurrent.tasks |
Implementations of tasks.
|
| 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.encoding |
Utility classes for encoding.
|
| net.lecousin.framework.io.out2in |
Implementations of IO.OutputToInput.
|
| net.lecousin.framework.io.text |
IO on characters and text.
|
| net.lecousin.framework.io.util |
Utility classes for IO.
|
| net.lecousin.framework.xml |
XML Parsing and generation.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncSupplier<Properties,Exception> |
LoadPropertiesFileTask.loadPropertiesFile(IO.Readable.Buffered input,
Charset charset,
byte priority,
IO.OperationType closeInputAtEnd,
Consumer<Properties> onDone)
Load properties from a Buffered IO.
|
| 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.
|
| Constructor and Description |
|---|
Buffered(IO.Readable.Buffered io)
Constructor.
|
Buffered(IO.Readable.Buffered io,
long position)
Constructor with initial position.
|
Buffered(String description,
IO.Readable.Buffered... ios)
Constructor.
|
DeterminedSize(String description,
IO.Readable.Buffered... ios)
Constructor.
|
| 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 |
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.
|
| Constructor and Description |
|---|
BufferedToInputStream(IO.Readable.Buffered io,
boolean closeAsync)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static IAsync<IOException> |
Base64.encodeAsync(IO.Readable.Buffered io,
ICharacterStream.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
Base64.encodeAsync(IO.Readable.Buffered io,
IO.WriterAsync writer)
Encode the Readable IO into the Writer.
|
| 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 | Field and Description |
|---|---|
protected IO.Readable.Buffered |
Decoder.io |
| Modifier and Type | Method and Description |
|---|---|
void |
Decoder.setInput(IO.Readable.Buffered io)
Set readable IO to decode.
|
| 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 | Field and Description |
|---|---|
protected IO.Readable.Buffered |
XMLStreamEvents.Starter.io |
| Modifier and Type | Method and Description |
|---|---|
static AsyncSupplier<XMLStreamReader,Exception> |
XMLStreamReader.start(IO.Readable.Buffered io,
int charactersBufferSize,
int maxBuffers,
boolean addPositionInErrors)
Utility method that initialize a XMLStreamReader, initialize it, and
return an AsyncWork which is unblocked when characters are available to be read.
|
| Constructor and Description |
|---|
Starter(IO.Readable.Buffered io,
Charset givenEncoding,
int bufferSize,
int maxBuffers,
boolean addPositionInErrors) |
Copyright © 2019. All rights reserved.