Java Reference
In-Depth Information
flush() invocation will flush all the buffers in a chain of Writers and OutputStreams . This
method has no parameters and returns no value.
It throws this exception:
java.io.IOException
The close() Method
public void close() throws java.io.IOException
The close() method closes the stream, flushing it first. After a stream has been closed, further
write() or flush() invocations will cause an IOException to be thrown. Closing a previously
closed stream, however, has no effect. This method has no parameters and returns no value.
It throws this exception:
java.io.IOException
The getBufferSize() Method
public int getBufferSize() throws java.io.IOException
D
The getBufferSize() method returns the size of the buffer in bytes, or 0 if there is no buffer.
It has no parameters.
It returns this value:
int
It throws this exception:
java.io.IOException
The getRemaining() Method
public int getRemaining() throws java.io.IOException
The getRemaining() method returns the number of bytes unused in the buffer. It has no para-
meters.
It returns this value:
int
It throws this exception:
java.io.IOException
The isAutoFlush() Method
public boolean isAutoFlush()
 
Search WWH ::




Custom Search