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:
Closeable

public class MyFileInputStream
extends FileInputStream


Constructor Summary
MyFileInputStream(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, finalize, getChannel, getFD, skip
 
Methods inherited from class java.io.InputStream
mark, markSupported, reset
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFileInputStream

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

read

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

read

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

read

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


Copyright © 2013. All Rights Reserved.