JML

java.io
Class OutputStreamWriter

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.OutputStreamWriter
Direct Known Subclasses:
FileWriter

public class OutputStreamWriter
extends Writer


Class Specifications

Specifications inherited from class Object
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this);

Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
OutputStreamWriter(OutputStream o)
           
OutputStreamWriter(OutputStream o, String s)
           
OutputStreamWriter(OutputStream o, Charset c)
           
OutputStreamWriter(OutputStream o, CharsetEncoder c)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
 void close()
           
 void flush()
           
(package private)  void flushBuffer()
           
 String getEncoding()
           
 void write(char[] ca, int i, int j)
           
 void write(int i)
           
 void write(String s, int i, int j)
           
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputStreamWriter

public OutputStreamWriter(OutputStream o,
                          String s)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

OutputStreamWriter

public OutputStreamWriter(OutputStream o)

OutputStreamWriter

public OutputStreamWriter(OutputStream o,
                          Charset c)

OutputStreamWriter

public OutputStreamWriter(OutputStream o,
                          CharsetEncoder c)
Method Detail

getEncoding

public String getEncoding()

flushBuffer

void flushBuffer()
           throws IOException
Throws:
IOException

write

public void write(int i)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] ca,
                  int i,
                  int j)
           throws IOException
Throws:
IOException

write

public void write(String s,
                  int i,
                  int j)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.