OpenAPI 1.0

com.aquafold.openapi.io
Interface AQFileWriter

All Superinterfaces:
Closeable

public interface AQFileWriter
extends Closeable

An instance of this interface, available via aqua.io.newFileWriter(), can be used to write binary data to a file.


Method Summary
 void setFile(String filename)
          Sets output file name.
 void write(byte[] data)
          Writes byte array to a file.
 void write(int data)
          Writes a single byte to a file.
 
Methods inherited from interface java.io.Closeable
close
 

Method Detail

setFile

void setFile(String filename)
Sets output file name.

Parameters:
filename - File name.

write

void write(int data)
           throws Exception
Writes a single byte to a file.

Parameters:
data -
Throws:
Exception

write

void write(byte[] data)
           throws Exception
Writes byte array to a file.

Parameters:
data -
Throws:
Exception

OpenAPI 1.0


Copyright © 2010 AquaFold, Inc. All Rights Reserved. Use is subject to license terms.