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(non_null OutputStream o)
           
OutputStreamWriter(non_null OutputStream o, non_null String s)
           
OutputStreamWriter(non_null OutputStream o, non_null Charset c)
           
OutputStreamWriter(non_null OutputStream o, non_null 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(non_null char[] ca, int i, int j)
           
 void write(int i)
           
 void write(non_null 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(non_null OutputStream o,
                          non_null String s)
                   throws UnsupportedEncodingException
Throws:
UnsupportedEncodingException

OutputStreamWriter

public OutputStreamWriter(non_null OutputStream o)

OutputStreamWriter

public OutputStreamWriter(non_null OutputStream o,
                          non_null Charset c)

OutputStreamWriter

public OutputStreamWriter(non_null OutputStream o,
                          non_null CharsetEncoder c)
Method Detail

getEncoding

public String getEncoding()
Specifications: non_null

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(non_null char[] ca,
                  int i,
                  int j)
           throws IOException
Throws:
IOException

write

public void write(non_null 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.