Class WalkRemoteObjectDatabase.FileStream

  • Enclosing class:
    WalkRemoteObjectDatabase

    static final class WalkRemoteObjectDatabase.FileStream
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.io.InputStream in  
      (package private) long length  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileStream​(java.io.InputStream i)
      Create a new stream of unknown length.
      FileStream​(java.io.InputStream i, long n)
      Create a new stream of known length.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) byte[] toArray()  
      • Methods inherited from class java.lang.Object

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

      • in

        final java.io.InputStream in
      • length

        final long length
    • Constructor Detail

      • FileStream

        FileStream​(java.io.InputStream i)
        Create a new stream of unknown length.
        Parameters:
        i - stream containing the file data. This stream will be closed by the caller when reading is complete.
      • FileStream

        FileStream​(java.io.InputStream i,
                   long n)
        Create a new stream of known length.
        Parameters:
        i - stream containing the file data. This stream will be closed by the caller when reading is complete.
        n - total number of bytes available for reading through i.
    • Method Detail

      • toArray

        byte[] toArray()
                throws java.io.IOException
        Throws:
        java.io.IOException