org.gcube.application.framework.contentmanagement.content.impl
Class MyFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FileInputStream
          extended by org.gcube.application.framework.contentmanagement.content.impl.MyFileInputStream
All Implemented Interfaces:
java.io.Closeable

public class MyFileInputStream
extends java.io.FileInputStream


Constructor Summary
MyFileInputStream(java.io.File file, long length)
           
 
Method Summary
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.FileInputStream
available, close, getChannel, getFD, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFileInputStream

public MyFileInputStream(java.io.File file,
                         long length)
                  throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException

read

public int read(byte[] b)
         throws java.io.IOException
Overrides:
read in class java.io.FileInputStream
Throws:
java.io.IOException