Package org.jbundle.jbackup.source
Class StreamSourceFile
- java.lang.Object
-
- org.jbundle.jbackup.source.BaseSourceFile
-
- org.jbundle.jbackup.source.StreamSourceFile
-
- All Implemented Interfaces:
SourceFile
public class StreamSourceFile extends BaseSourceFile implements SourceFile
Directory scanner. This class is a utility for scanning through a directory tree.- Version:
- Author:
- Administrator
-
-
Field Summary
-
Fields inherited from class org.jbundle.jbackup.source.BaseSourceFile
m_FileName, m_FilePath, m_inputFile, m_InputStream, m_lStreamLength
-
-
Constructor Summary
Constructors Constructor Description StreamSourceFile()StreamSourceFile(File inputFile, InputStream inputStream, String filePath, String fileName, long lStreamLength)StreamSourceFile(File inputFile, String filePath, String fileName)StreamSourceFile(InputStream inputStream, String filePath, String fileName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Close the source file.voidinit(File inputFile, InputStream inputStream, String filePath, String fileName, long lStreamLength)InputStreammakeInStream()If there is no input stream, use the file to create one.-
Methods inherited from class org.jbundle.jbackup.source.BaseSourceFile
getFile, getFileName, getFilePath, getInputStream, getStreamLength, makeInFile, makeInFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jbundle.jbackup.source.SourceFile
getFile, getFileName, getFilePath, getInputStream, getStreamLength, makeInFile, makeInFile
-
-
-
-
Constructor Detail
-
StreamSourceFile
public StreamSourceFile()
-
StreamSourceFile
public StreamSourceFile(InputStream inputStream, String filePath, String fileName)
-
StreamSourceFile
public StreamSourceFile(File inputFile, InputStream inputStream, String filePath, String fileName, long lStreamLength)
-
-
Method Detail
-
init
public void init(File inputFile, InputStream inputStream, String filePath, String fileName, long lStreamLength)
- Overrides:
initin classBaseSourceFile
-
makeInStream
public InputStream makeInStream()
If there is no input stream, use the file to create one.- Specified by:
makeInStreamin interfaceSourceFile- Overrides:
makeInStreamin classBaseSourceFile
-
close
public void close()
Close the source file.- Specified by:
closein interfaceSourceFile- Overrides:
closein classBaseSourceFile
-
-