Constructor and Description |
---|
NativeStream() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the stream
|
void |
copy(Stream stream)
Copy the content of another stream
|
long |
getLength()
Get the length of the stream in bytes
|
int |
read(byte[] buffer,
int offset,
int length)
Read from the stream
|
boolean |
seek(long position)
Set byte position
|
long |
tell()
Get current byte position
|
void |
write(byte[] buffer,
int offset,
int length)
Write to the stream
|
public long getLength() throws java.io.IOException
public boolean seek(long position) throws java.io.IOException
public long tell() throws java.io.IOException
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
public void write(byte[] buffer, int offset, int length) throws java.io.IOException
public void copy(Stream stream) throws java.io.IOException
stream
- The stream of which the content is copiedjava.io.IOException