public class LOutChannel extends LExport
Constructor and Description |
---|
LOutChannel(java.io.File f) |
LOutChannel(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Flushes buffer and closes output stream.
|
void |
closeLength()
Used in conjunction with markLength(int).
|
void |
fillPosMarker()
Used in conjunction with setPosMarker(int).
|
void |
markLength(int size)
A stack-based system where you can declare an amount of bytes to represent the length of some upcoming data.
|
void |
openOutput(java.lang.String path) |
long |
pos() |
void |
pos(long set) |
void |
setPosMarker(int size)
A queue-based system where you can declare an amount of bytes to represent the position of some upcoming data.
|
void |
write(byte b) |
void |
write(byte[] array)
Writes a byte array to the file.
|
public LOutChannel(java.lang.String path) throws java.io.FileNotFoundException
path
- Path to open a channel to.java.io.FileNotFoundException
public LOutChannel(java.io.File f) throws java.io.FileNotFoundException
f
- File to open a channel to.java.io.FileNotFoundException
public void openOutput(java.lang.String path) throws java.io.FileNotFoundException
openOutput
in class LExport
path
- Path to open a channel to.java.io.FileNotFoundException
public void write(byte[] array) throws java.io.IOException
LExport
public void write(byte b) throws java.io.IOException
public void close() throws java.io.IOException
LExport
public void markLength(int size) throws java.io.IOException
size
- Number of bytes to write/reserve for the length information.java.io.IOException
public void closeLength() throws java.io.IOException
java.io.IOException
public void setPosMarker(int size) throws java.io.IOException
size
- Number of bytes to write/reserve for the position information.java.io.IOException
public void fillPosMarker() throws java.io.IOException
java.io.IOException
public void pos(long set) throws java.io.IOException
set
- java.io.IOException
public long pos() throws java.io.IOException
java.io.IOException