| Package | Description |
|---|---|
| com.neurotec.io | |
| com.neurotec.lang |
| Modifier and Type | Class and Description |
|---|---|
class |
ByteBufferStream
Provides functions for working with byte buffer streams.
|
class |
NBufferedStream
Provides functions for adding a buffering layer to read and write operations on another stream.
|
class |
NFileStream
Provides functions supporting both synchronous and asynchronous file read and write operations.
|
class |
NMemoryStream
Provides functions for working with memory streams.
|
| Modifier and Type | Method and Description |
|---|---|
static NStream |
NStream.fromChannel(ByteChannel ch)
Creates a new stream from specified byte channel.
|
static NStream |
NStream.fromChannel(FileChannel ch)
Creates a new stream from specified file channel.
|
static NStream |
NStream.fromChannel(FileChannel ch,
NFileAccess fa)
Creates a new stream from specified file channel.
|
static NStream |
NStream.fromChannel(ReadableByteChannel ch)
Creates a new stream from specified readable byte channel.
|
static NStream |
NStream.fromChannel(WritableByteChannel ch)
Creates a new stream from specified writable byte channel.
|
static NStream |
NStream.fromInputStream(FileInputStream in)
Creates a new stream from specified file input stream.
|
static NStream |
NStream.fromInputStream(InputStream in)
Creates a new stream from specified input stream.
|
static NStream |
NStream.fromOutputStream(FileOutputStream out)
Creates a new stream from specified file output stream.
|
static NStream |
NStream.fromOutputStream(OutputStream out)
Creates a new stream from specified output stream.
|
static NStream |
NStream.fromRandomAccessFile(RandomAccessFile raf)
Creates a new stream from specified random access file.
|
static NStream |
NStream.fromRandomAccessFile(RandomAccessFile raf,
NFileAccess fa)
Creates a new stream from specified random access file with specified file access.
|
static NStream |
NStream.getNull()
Returns NStream with no backing store.
|
static NStream |
NStream.getSynchronized(NStream stream)
Gets a synchronized version of the specified stream.
|
NStream |
NStream.position(long newPosition)
Sets the position of the current stream.
|
NStream |
NStream.truncate(long size)
Reduces current stream's size to the specified value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
NStream.copyFrom(NStream stream,
int bufferSize) |
void |
NStream.copyTo(NStream stream) |
static NStream |
NStream.getSynchronized(NStream stream)
Gets a synchronized version of the specified stream.
|
void |
NMemoryStream.writeTo(NStream stream) |
| Constructor and Description |
|---|
NBufferedStream(NStream stream) |
NBufferedStream(NStream stream,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
NObject.save(NStream stream) |
void |
NObject.save(NStream stream,
int flags) |
static <E extends NObject> |
NObject.saveMany(E[] objects,
NStream stream) |
static <E extends NObject> |
NObject.saveMany(E[] objects,
NStream stream,
int flags) |
Copyright © 2016 Neurotechnology. All rights reserved.