public class FileInputSource extends DirectoryInputSource
| Constructor and Description |
|---|
FileInputSource(File file,
boolean inSourcePath) |
FileInputSource(File sourceDir,
File file,
boolean inSourcePath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
FileInputSource |
getChild(String path) |
File |
getFile() |
char |
getFileSeparatorChar() |
InputStream |
getInputStream() |
String |
getName()
The file name, i.e.
|
InputSource |
getParent() |
String |
getPath() |
String |
getRelativePath() |
File |
getSourceDir() |
boolean |
isDirectory() |
boolean |
isInSourcePath() |
List<InputSource> |
list() |
public FileInputSource(File file, boolean inSourcePath)
public String getName()
InputSourcepublic String getPath()
public InputStream getInputStream() throws IOException
getInputStream in interface InputSourcegetInputStream in class DirectoryInputSourceIOExceptionpublic String getRelativePath()
public boolean isInSourcePath()
public void close()
close in interface InputSourceclose in class DirectoryInputSourcepublic File getFile()
public File getSourceDir()
public char getFileSeparatorChar()
public InputSource getParent()
getParent in interface InputSourcegetParent in class DirectoryInputSourcepublic boolean isDirectory()
isDirectory in interface InputSourceisDirectory in class DirectoryInputSourcepublic List<InputSource> list()
public FileInputSource getChild(String path)
Copyright © 2002–2015 CoreMedia AG. All rights reserved.