Package com.aquafold.openapi.io
Interface AQFileWriter
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
public interface AQFileWriter extends java.io.CloseableAn instance of this interface, available via aqua.io.newFileWriter(), can be used to write binary data to a file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetFile(java.lang.String filename)Sets output file name.voidwrite(byte[] data)Writes byte array to a file.voidwrite(int data)Writes a single byte to a file.
-
-
-
Method Detail
-
setFile
void setFile(java.lang.String filename)
Sets output file name.- Parameters:
filename- File name.
-
write
void write(int data) throws java.lang.ExceptionWrites a single byte to a file.- Parameters:
data- the data- Throws:
java.lang.Exception- On Error
-
write
void write(byte[] data) throws java.lang.ExceptionWrites byte array to a file.- Parameters:
data- the data- Throws:
java.lang.Exception- On Error
-
-