Documentation of 'org.freehep.util.io.CountedByteOutputStream' Java class
CountedByteOutputStream
org.freehep.util.io

Class CountedByteOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable


    public class CountedByteOutputStream
    extends java.io.FilterOutputStream
    The CountedByteOutputStream counts the number of bytes written.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CountedByteOutputStream(java.io.OutputStream out)
      Creates a Counted Bytes output stream from the given stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CountedByteOutputStream

        public CountedByteOutputStream(java.io.OutputStream out)
        Creates a Counted Bytes output stream from the given stream.
        Parameters:
        out - stream to write to
    • Method Detail

      • write

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

        public void write(byte[] b)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • write

        public void write(byte[] b,
                          int offset,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.FilterOutputStream
        Throws:
        java.io.IOException
      • getCount

        public int getCount()
        Returns:
        number of bytes written.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.