Class SVGImageElementBridge.ProtectedStream

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable
    Enclosing class:
    SVGImageElementBridge

    public static class SVGImageElementBridge.ProtectedStream
    extends java.io.BufferedInputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) static int BUFFER_SIZE  
      (package private) boolean isTied  
      (package private) boolean wasClosed  
      • Fields inherited from class java.io.BufferedInputStream

        buf, count, marklimit, markpos, pos
      • Fields inherited from class java.io.FilterInputStream

        in
    • Constructor Summary

      Constructors 
      Constructor Description
      ProtectedStream​(java.io.InputStream is)  
      ProtectedStream​(java.io.InputStream is, int size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void mark​(int sz)  
      boolean markSupported()  
      void release()
      Close the stream.
      void reset()  
      void retry()  
      void tie()
      Let stream know that it is perminately tied to one image decoder.
      • Methods inherited from class java.io.BufferedInputStream

        available, read, read, skip
      • Methods inherited from class java.io.FilterInputStream

        read
      • Methods inherited from class java.io.InputStream

        nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
      • Methods inherited from class java.lang.Object

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

      • wasClosed

        boolean wasClosed
      • isTied

        boolean isTied
    • Constructor Detail

      • ProtectedStream

        ProtectedStream​(java.io.InputStream is)
      • ProtectedStream

        ProtectedStream​(java.io.InputStream is,
                        int size)
    • Method Detail

      • markSupported

        public boolean markSupported()
        Overrides:
        markSupported in class java.io.BufferedInputStream
      • mark

        public void mark​(int sz)
        Overrides:
        mark in class java.io.BufferedInputStream
      • reset

        public void reset()
                   throws java.io.IOException
        Overrides:
        reset in class java.io.BufferedInputStream
        Throws:
        java.io.IOException
      • retry

        public void retry()
                   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.BufferedInputStream
        Throws:
        java.io.IOException
      • tie

        public void tie()
                 throws java.io.IOException
        Let stream know that it is perminately tied to one image decoder. This means that it can allow that decoder to close the stream.
        Throws:
        java.io.IOException
      • release

        public void release()
        Close the stream.