DCT Lightfoot v3 API specification

java.io
Class OutputStreamWriter

java.lang.Object
  |
  +--java.io.Writer
        |
        +--java.io.OutputStreamWriter

public class OutputStreamWriter
extends Writer


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
OutputStreamWriter(OutputStream os)
          Create an output stream writer from an output stream
OutputStreamWriter(OutputStream os, java.lang.String enc)
          Create an output stream using an encoding
 
Method Summary
 void close()
          Close the stream
 void flush()
          Flush the stream
 void write(char[] cBuf, int off, int len)
          Write a character array to the stream
 void write(int ch)
          Write a single character to the stream
 void write(java.lang.String str, int off, int len)
          Write a string to the stream
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamWriter

public OutputStreamWriter(OutputStream os)
Create an output stream writer from an output stream

Parameters:
os - The stream

OutputStreamWriter

public OutputStreamWriter(OutputStream os,
                          java.lang.String enc)
Create an output stream using an encoding

Parameters:
os - The stream
enc - The encoding
Method Detail

close

public void close()
           throws IOException
Close the stream

Specified by:
close in class Writer
Throws:
IOException - if there is a problem

flush

public void flush()
           throws IOException
Flush the stream

Specified by:
flush in class Writer
Throws:
IOException - if there is a problem

write

public void write(char[] cBuf,
                  int off,
                  int len)
           throws IOException
Write a character array to the stream

Specified by:
write in class Writer
Parameters:
off - The offset into the buffer
len - The length of the buffer
cBuf - The buffer to write
Throws:
IOException - if there is a problem

write

public void write(int ch)
           throws IOException
Write a single character to the stream

Overrides:
write in class Writer
Parameters:
ch - The character
Throws:
IOException - if there is a problem

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws IOException
Write a string to the stream

Overrides:
write in class Writer
Parameters:
str - The string
off - The offset
len - The length
Throws:
IOException - if there is a problem

DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification