Monday 11 March 2013

write(String)


write(String)

Declaration:
public void write(java.lang.String str)
throws IOException
Description:
Write a string.
Parameters:
str - String to be written
Throws:
IOException - If an I/O error occurs
write(String, int, int)
Declaration:
public void write(java.lang.String str, int off, int len)
throws IOException
Description:
Write a portion of a string.
Parameters:
str - A String

off - Offset from which to start writing characters
len - Number of characters to write
Throws:
IOException - If an I/O error occurs
flush()
Declaration:
public abstract void flush()
throws IOException
Description:
Flush the stream. If the stream has saved any characters from the various write() methods in a buffer, write
them immediately to their intended destination. Then, if that destination is another character or byte stream,
flush it. Thus one flush() invocation will flush all the buffers in a chain of Writers and OutputStreams.
Throws:
IOException - If an I/O error occurs
close()
Declaration:
public abstract void close()
throws IOException
Description:
Close the stream, flushing it first. Once 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.
Throws:
IOException - If an I/O error occurs


No comments:

Post a Comment