| 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).
|
| Modifier and Type | Class and Description |
|---|---|
static class |
FileIO.ReadWrite
FileIO with read and write operations.
|
static class |
FileIO.WriteOnly
FileIO in write-only mode.
|
| Modifier and Type | Method and Description |
|---|---|
static Task<Void,IOException> |
IOUtil.setSizeAsyncUsingSync(IO.Resizable io,
long newSize,
byte priority)
Implement an asynchronous setSize using a task calling a synchronous one.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
BufferedIO.ReadWrite
Writable BufferedIO.
|
class |
ByteArrayIO
IO implemented with a single 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.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends IO.Readable & IO.Writable & IO.Resizable> |
IOProvider.ReadWrite.KnownSize.Resizable.provideIOReadWriteResizable(byte priority) |
default <T extends IO.Readable & IO.Writable & IO.Resizable> |
IOProvider.ReadWrite.Seekable.KnownSize.Resizable.provideIOReadWriteResizable(byte priority) |
<T extends IO.Readable.Seekable & IO.Writable.Seekable & IO.Resizable> |
IOProvider.ReadWrite.Seekable.KnownSize.Resizable.provideIOReadWriteSeekableResizable(byte priority) |
<T extends IO.Readable.Seekable & IO.Writable.Seekable & IO.Resizable> |
FileIOProvider.provideIOReadWriteSeekableResizable(byte priority) |
<T extends IO.Writable & IO.Resizable> |
IOProvider.Writable.KnownSize.Resizable.provideIOWritableResizable(byte priority)
Provide a IO.Writable with Resizable.
|
default <T extends IO.Writable & IO.Resizable> |
IOProvider.Writable.Seekable.KnownSize.Resizable.provideIOWritableResizable(byte priority) |
<T extends IO.Writable.Seekable & IO.Resizable> |
IOProvider.Writable.Seekable.KnownSize.Resizable.provideIOWritableSeekableResizable(byte priority)
Provide a IO.Writable.Seekable with Resizable.
|
<T extends IO.Writable.Seekable & IO.Resizable> |
FileIOProvider.provideIOWritableSeekableResizable(byte priority) |
Copyright © 2019. All rights reserved.