ch.javasoft.io
Class PrintDataOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.PrintStream
              extended by 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.


Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
PrintDataOutputStream(OutputStream out)
           
PrintDataOutputStream(OutputStream out, boolean autoFlush)
           
PrintDataOutputStream(OutputStream out, boolean autoFlush, String encoding)
           
PrintDataOutputStream(OutputStream out, String encoding)
           
 
Method Summary
 void writeBoolean(boolean v)
           
 void writeByte(int v)
           
 void writeBytes(String s)
           
 void writeChar(int v)
           
 void writeChars(String s)
           
 void writeDouble(double v)
           
 void writeFloat(float v)
           
 void writeInt(int v)
           
 void writeLong(long v)
           
 void writeShort(int v)
           
 void writeUTF(String str)
           
 
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.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write, write, write
 

Constructor Detail

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
Method Detail

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