Class IIOOutputStreamAdapter

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

    class IIOOutputStreamAdapter
    extends java.io.OutputStream
    IIOOutputStreamAdapter
    Version:
    $Id: IIOOutputStreamAdapter.java,v 1.0 Sep 26, 2007 11:50:38 AM haraldk Exp$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.imageio.stream.ImageOutputStream output  
    • Constructor Summary

      Constructors 
      Constructor Description
      IIOOutputStreamAdapter​(javax.imageio.stream.ImageOutputStream pOutput)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void assertOpen()  
      void close()  
      void flush()  
      void write​(byte[] pBytes)  
      void write​(byte[] pBytes, int pOffset, int pLength)  
      void write​(int pByte)  
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • output

        private javax.imageio.stream.ImageOutputStream output
    • Constructor Detail

      • IIOOutputStreamAdapter

        public IIOOutputStreamAdapter​(javax.imageio.stream.ImageOutputStream pOutput)
    • Method Detail

      • write

        public void write​(byte[] pBytes)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] pBytes,
                          int pOffset,
                          int pLength)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(int pByte)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • flush

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        Throws:
        java.io.IOException
      • assertOpen

        private void assertOpen()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException