java.io
Class StringWriter
java.lang.Object
java.io.Writer
java.io.StringWriter
- public class StringWriter
- extends Writer
Specifications inherited from class Object |
represents objectState <- org.jmlspecs.lang.JMLDataGroup.IT;
public represents _getClass <- \typeof(this); |
StringWriter
public StringWriter()
StringWriter
public StringWriter(int Param0)
close
public void close()
throws IOException
- Throws:
IOException
flush
public void flush()
write
public void write(int Param0)
- Overrides:
write
in class Writer
write
public void write(non_null char[] Param0,
int Param1,
int Param2)
toString
public String toString()
- Overrides:
toString
in class Object
- Specifications: non_null
- Specifications inherited from overridden method in class Object:
non_null -
public normal_behavior
assignable objectState;
ensures \result != null&&\result .equals(this.theString);
ensures (* \result is a string representation of this object *);
- also
-
public code normal_behavior
assignable \nothing;
ensures \result != null&&(* \result is the instance's class name, followed by an @, followed by the instance's hashcode in hex *);
- also
-
public code model_program { ... }
- implies_that
-
assignable objectState;
ensures \result != null;
write
public void write(non_null String Param0)
- Overrides:
write
in class Writer
write
public void write(non_null String Param0,
int Param1,
int Param2)
- Overrides:
write
in class Writer
getBuffer
public StringBuffer getBuffer()
- Specifications: non_null
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.