Class RandomInMemoryFile

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

    public class RandomInMemoryFile
    extends java.lang.Object
    implements java.io.Closeable
    • Constructor Summary

      Constructors 
      Constructor Description
      RandomInMemoryFile​(int size, java.lang.String mimeType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream asStream()  
      void close()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getMimeType()  
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • RandomInMemoryFile

        public RandomInMemoryFile​(int size,
                                  java.lang.String mimeType)
    • Method Detail

      • asStream

        public java.io.InputStream asStream()
      • getMimeType

        public java.lang.String getMimeType()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • close

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