Top Description Constructors Methods
org.codehaus.groovy.runtime

public Class FlushingStreamWriter

extends OutputStreamWriter
Class Inheritance
Imports
java.io.IOException, .OutputStream, .OutputStreamWriter

Stream writer which flushes after each write operation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
write(char[]
Buffer of characters
cbuf
,
int
Offset from which to start writing characters
off
,
int
Number of characters to write
len
)

Overrides java.io.OutputStreamWriter.write.

Writes a portion of an array of characters.
public void
write(int
int specifying a character to be written
c
)

Overrides java.io.OutputStreamWriter.write.

Writes a single character.
public void
write(String
A String
str
,
int
Offset from which to start writing characters
off
,
int
Number of characters to write
len
)

Overrides java.io.OutputStreamWriter.write.

Writes a portion of a string.
Inherited from java.io.OutputStreamWriter:
appendappendcloseflushgetEncoding

Constructor Detail

FlushingStreamWriterback to summary
public FlushingStreamWriter(OutputStream out)

Method Detail

writeback to summary
public void write(char[] cbuf, int off, int len) throws IOException

Overrides java.io.OutputStreamWriter.write.

Doc from java.io.OutputStreamWriter.write.

Writes a portion of an array of characters.

Parameters
cbuf:char[]

Buffer of characters

off:int

Offset from which to start writing characters

len:int

Number of characters to write

Exceptions
IOException:
If an I/O error occurs
writeback to summary
public void write(int c) throws IOException

Overrides java.io.OutputStreamWriter.write.

Doc from java.io.OutputStreamWriter.write.

Writes a single character.

Parameters
c:int

Doc from java.io.Writer.write.

int specifying a character to be written

Exceptions
IOException:
If an I/O error occurs
writeback to summary
public void write(String str, int off, int len) throws IOException

Overrides java.io.OutputStreamWriter.write.

Doc from java.io.OutputStreamWriter.write.

Writes a portion of a string.

Parameters
str:String

A String

off:int

Offset from which to start writing characters

len:int

Number of characters to write

Exceptions
IOException:
If an I/O error occurs