com.baidubce.internal
Class RestartableFileInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.baidubce.internal.RestartableInputStream
          extended by com.baidubce.internal.RestartableFileInputStream
All Implemented Interfaces:
Closeable

public class RestartableFileInputStream
extends RestartableInputStream

Restartable File InputStream extends Restartable InputStream.


Constructor Summary
RestartableFileInputStream(File file)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void restart()
           
 
Methods inherited from class com.baidubce.internal.RestartableInputStream
wrap
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestartableFileInputStream

public RestartableFileInputStream(File file)
                           throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

restart

public void restart()
Specified by:
restart in class RestartableInputStream

read

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

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © 2018. All rights reserved.