FreeHEP API
Version current

org.freehep.util.io
Class CountedByteOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byorg.freehep.util.io.CountedByteOutputStream
Direct Known Subclasses:
PDFByteWriter

public class CountedByteOutputStream
extends FilterOutputStream

The CountedByteOutputStream counts the number of bytes written.

Version:
$Id: CountedByteOutputStream.java,v 1.1 2001/06/05 10:32:52 duns Exp $
Author:
Mark Donszelmann
Source Code:
CountedByteOutputStream.java

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
CountedByteOutputStream(OutputStream out)
           
 
Method Summary
 int getCount()
           
 void write(byte[] b)
           
 void write(byte[] b, int offset, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountedByteOutputStream

public CountedByteOutputStream(OutputStream out)
Method Detail

write

public void write(int b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b,
                  int offset,
                  int len)
           throws IOException
Throws:
IOException

getCount

public int getCount()

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.