com.caucho.quercus.lib.file
Interface BinaryOutput

All Superinterfaces:
BinaryStream
All Known Subinterfaces:
SocketInputOutput
All Known Implementing Classes:
AbstractBinaryInputOutput, AbstractBinaryOutput, BufferedBinaryInputOutput, FileInputOutput, FileOutput, HttpInputOutput, PhpBinaryOutput, PhpStderr, PhpStdout, PopenOutput, ProcOpenOutput, TcpInputOutput, UdpInputOutput, WrappedStream, WriteStreamOutput, ZlibOutputStream

public interface BinaryOutput
extends BinaryStream

Represents a Quercus output stream


Field Summary
 
Fields inherited from interface com.caucho.quercus.lib.file.BinaryStream
SEEK_CUR, SEEK_END, SEEK_SET
 
Method Summary
 void close()
          Closes the stream.
 void closeWrite()
          Closes the stream for writing
 void flush()
          Flushes the output
 java.io.OutputStream getOutputStream()
          Returns an OutputStream.
 void print(char ch)
          prints a unicode character
 void print(java.lang.String s)
          prints
 void write(byte[] buffer, int offset, int length)
          Writes a buffer.
 int write(java.io.InputStream is, int length)
          Writes a buffer.
 
Methods inherited from interface com.caucho.quercus.lib.file.BinaryStream
getPosition, isEOF, seek, setPosition, stat
 

Method Detail

getOutputStream

java.io.OutputStream getOutputStream()
Returns an OutputStream.


write

void write(byte[] buffer,
           int offset,
           int length)
           throws java.io.IOException
Writes a buffer.

Throws:
java.io.IOException

write

int write(java.io.InputStream is,
          int length)
          throws java.io.IOException
Writes a buffer.

Throws:
java.io.IOException

print

void print(char ch)
           throws java.io.IOException
prints a unicode character

Throws:
java.io.IOException

print

void print(java.lang.String s)
           throws java.io.IOException
prints

Throws:
java.io.IOException

flush

void flush()
           throws java.io.IOException
Flushes the output

Throws:
java.io.IOException

closeWrite

void closeWrite()
Closes the stream for writing


close

void close()
Closes the stream.

Specified by:
close in interface BinaryStream