xmlgraphics-commons 1.3.1

org.apache.xmlgraphics.util.io
Class ASCIIHexOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.apache.xmlgraphics.util.io.ASCIIHexOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, Finalizable

public class ASCIIHexOutputStream
extends java.io.FilterOutputStream
implements Finalizable

This class applies a ASCII Hex encoding to the stream.

Version:
$Id: ASCIIHexOutputStream.java 426584 2006-07-28 16:01:47Z jeremias $

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
ASCIIHexOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void close()
           
 void finalizeStream()
          This method can be called instead of close() on a subclass of FilteredOutputStream when a final marker has to be written to the target stream, but close() cannot be called.
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASCIIHexOutputStream

public ASCIIHexOutputStream(java.io.OutputStream out)
See Also:
FilterOutputStream
Method Detail

write

public void write(int b)
           throws java.io.IOException
Overrides:
write in class java.io.FilterOutputStream
Throws:
java.io.IOException
See Also:
FilterOutputStream

finalizeStream

public void finalizeStream()
                    throws java.io.IOException
Description copied from interface: Finalizable
This method can be called instead of close() on a subclass of FilteredOutputStream when a final marker has to be written to the target stream, but close() cannot be called.

Specified by:
finalizeStream in interface Finalizable
Throws:
java.io.IOException - In case of an IO problem
See Also:
Finalizable

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.FilterOutputStream
Throws:
java.io.IOException
See Also:
FilterOutputStream

xmlgraphics-commons 1.3.1

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.