Class MediaManager.InputStreamWithSize

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Enclosing class:
    MediaManager

    public static class MediaManager.InputStreamWithSize
    extends java.lang.Object
    implements java.lang.AutoCloseable
    Media related input stream
    • Constructor Summary

      Constructors 
      Constructor Description
      InputStreamWithSize​(java.io.InputStream inputStream, long size)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      java.io.InputStream getInputStream()  
      long getSize()  
      • Methods inherited from class java.lang.Object

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

      • InputStreamWithSize

        public InputStreamWithSize​(java.io.InputStream inputStream,
                                   long size)
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
      • getSize

        public long getSize()
      • close

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