public class BinFileOutput<T> extends BinOutput<T> implements FileItemOutput<T>
| Modifier and Type | Field and Description |
|---|---|
protected java.nio.file.Path |
dstPath |
| Constructor and Description |
|---|
BinFileOutput()
Opens the temporary output file with ".bin" extension and random name.
|
BinFileOutput(java.nio.file.Path dstPath) |
| Modifier and Type | Method and Description |
|---|---|
java.nio.file.Path |
getFilePath() |
BinFileInput<T> |
getInput()
Make a
Input instance from this. |
java.lang.String |
toString() |
public BinFileOutput(java.nio.file.Path dstPath)
throws java.io.IOException
dstPath - the path to the file which should be used to store the serialized itemsjava.io.IOException - if unable to open the file for writingpublic BinFileOutput()
throws java.io.IOException
java.io.IOExceptionpublic BinFileInput<T> getInput() throws java.io.IOException
OutputInput instance from this.public final java.nio.file.Path getFilePath()
getFilePath in interface FileItemOutput<T>