InputFileSystemDirectory

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.tex.IInputWorkingDirectory, com.aspose.tex.IFileCollector

public class InputFileSystemDirectory implements IInputWorkingDirectory, IFileCollector

Implements the regular file system’s method for getting a file stream to read from.

Constructors

ConstructorDescription
InputFileSystemDirectory(String basePath)Creates new instance.

Methods

MethodDescription
getFile(String fileName, boolean searchSubdirectories)Returns the stream to read from.
getFileNamesByExtension(String extension)Returns the array of file names by an extension.
getFileNamesByExtension(String extension, String path)Returns the array of file names by an extension.
close()Disposes the instance.

InputFileSystemDirectory(String basePath)

public InputFileSystemDirectory(String basePath)

Creates new instance.

Parameters:

ParameterTypeDescription
basePathjava.lang.StringThe base path of the directory.

getFile(String fileName, boolean searchSubdirectories)

public TeXInputStream getFile(String fileName, boolean searchSubdirectories)

Returns the stream to read from.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringThe file name.
searchSubdirectoriesbooleanIndicates whether to look for a file in subdirectories.

Returns: TeXInputStream - The named stream.

getFileNamesByExtension(String extension)

public String[] getFileNamesByExtension(String extension)

Returns the array of file names by an extension.

Parameters:

ParameterTypeDescription
extensionjava.lang.StringThe file extension.

Returns: java.lang.String[] - The array of file names.

getFileNamesByExtension(String extension, String path)

public String[] getFileNamesByExtension(String extension, String path)

Returns the array of file names by an extension.

Parameters:

ParameterTypeDescription
extensionjava.lang.StringThe file extension.
pathjava.lang.StringThe path inside the directory.

Returns: java.lang.String[] - The array of file names.

close()

public void close()

Disposes the instance.