ch.javasoft.io
Class PrintDataOutputStream
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
java.io.PrintStream
ch.javasoft.io.PrintDataOutputStream
- All Implemented Interfaces:
- Closeable, DataOutput, Flushable, Appendable
public class PrintDataOutputStream
- extends PrintStream
- implements DataOutput
A PrintStream which implements DataOutput at
the same time.
| Methods inherited from class java.io.PrintStream |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PrintDataOutputStream
public PrintDataOutputStream(OutputStream out)
PrintDataOutputStream
public PrintDataOutputStream(OutputStream out,
String encoding)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
PrintDataOutputStream
public PrintDataOutputStream(OutputStream out,
boolean autoFlush)
PrintDataOutputStream
public PrintDataOutputStream(OutputStream out,
boolean autoFlush,
String encoding)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
writeBoolean
public void writeBoolean(boolean v)
throws IOException
- Specified by:
writeBoolean in interface DataOutput
- Throws:
IOException
writeByte
public void writeByte(int v)
throws IOException
- Specified by:
writeByte in interface DataOutput
- Throws:
IOException
writeShort
public void writeShort(int v)
throws IOException
- Specified by:
writeShort in interface DataOutput
- Throws:
IOException
writeChar
public void writeChar(int v)
throws IOException
- Specified by:
writeChar in interface DataOutput
- Throws:
IOException
writeInt
public void writeInt(int v)
throws IOException
- Specified by:
writeInt in interface DataOutput
- Throws:
IOException
writeLong
public void writeLong(long v)
throws IOException
- Specified by:
writeLong in interface DataOutput
- Throws:
IOException
writeFloat
public void writeFloat(float v)
throws IOException
- Specified by:
writeFloat in interface DataOutput
- Throws:
IOException
writeDouble
public void writeDouble(double v)
throws IOException
- Specified by:
writeDouble in interface DataOutput
- Throws:
IOException
writeBytes
public void writeBytes(String s)
throws IOException
- Specified by:
writeBytes in interface DataOutput
- Throws:
IOException
writeChars
public void writeChars(String s)
throws IOException
- Specified by:
writeChars in interface DataOutput
- Throws:
IOException
writeUTF
public void writeUTF(String str)
throws IOException
- Specified by:
writeUTF in interface DataOutput
- Throws:
IOException