public class FileInput extends ReaderInput
File.| Constructor and Description |
|---|
FileInput(File file) |
FileInput(FileDescriptor fileDesc) |
FileInput(File currentDirectory,
File file) |
FileInput(FileInputStream fileStream) |
FileInput(FileReader fileReader) |
FileInput(File currentDirectory,
String file) |
FileInput(String file) |
| Modifier and Type | Method and Description |
|---|---|
static Input |
composite(File... files)
Creates and returns an input composed from the specified files
altogether.
|
static Input |
composite(List<File> files)
Creates and returns an input composed from the specified files
altogether.
|
String |
getFileInfo()
Returns the file info string, for instance a file path or file name.
|
String |
getFileInfo(File relativeRoot)
Returns the file info string relative to the given root directory.
|
static List<FileInput> |
multiple(File... files)
Creates a new
FileInput object for each of the specified files
and resturns a list with all input objects. |
static List<FileInput> |
multiple(List<File> files)
Creates a new
FileInput object for each of the specified files
and resturns a list with all input objects. |
String |
toString() |
close, hasMoreLines, readLineiteratorclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic FileInput(FileReader fileReader)
public FileInput(FileInputStream fileStream)
public FileInput(FileDescriptor fileDesc)
public static List<FileInput> multiple(File... files)
FileInput object for each of the specified files
and resturns a list with all input objects.files - the files for whose to create a FileInput objectpublic static List<FileInput> multiple(List<File> files)
FileInput object for each of the specified files
and resturns a list with all input objects.files - the files for whose to create a FileInput objectpublic static Input composite(File... files)
files - the files to combine into a single input objectpublic static Input composite(List<File> files)
files - the files to combine into a single input objectpublic String getFileInfo()
public String getFileInfo(File relativeRoot)
getFileInfo().relativeRoot - the relative root for the returned path, may be ignored if a
relative path cannot be evaluated for the underlying source
objectCopyright © 2025. All rights reserved.