Class TIFFOutputStream

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

    public class TIFFOutputStream
    extends java.io.FilterOutputStream
    TIFFOutputStream Performs TIFF image filtering of an output stream
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTotalOut()
      Counts the number of bytes written by this filter.
      void write​(byte[] b)
      Writes an array of bytes.
      void write​(byte[] b, int off, int len)
      Writes a subarray of bytes.
      void write​(int b)
      Writes a byte.
      • Methods inherited from class java.io.FilterOutputStream

        close, flush
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • TIFFOutputStream

        public TIFFOutputStream​(java.io.OutputStream out,
                                FilterParams p)
        Creates an output stream filter.
        Parameters:
        out - the output stream
      • TIFFOutputStream

        public TIFFOutputStream​(java.io.OutputStream out)
    • Method Detail

      • write

        public void write​(int b)
                   throws java.io.IOException
        Writes a byte. Will block until the byte is actually written.
        Overrides:
        write in class java.io.FilterOutputStream
        Parameters:
        b - the byte
        Throws:
        java.io.IOException - If an I/O error has occurred.
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Writes a subarray of bytes.
        Overrides:
        write in class java.io.FilterOutputStream
        Parameters:
        b - the data to be written
        off - the start offset in the data
        len - the number of bytes that are written
        Throws:
        java.io.IOException - If an I/O error has occurred.
      • write

        public void write​(byte[] b)
                   throws java.io.IOException
        Writes an array of bytes. Will block until the bytes are actually written.
        Overrides:
        write in class java.io.FilterOutputStream
        Parameters:
        b - the data to be written
        Throws:
        java.io.IOException - If an I/O error has occurred.
      • getTotalOut

        public long getTotalOut()
        Counts the number of bytes written by this filter.
        Returns:
        actual number of bytes written