public class TeXMemoryOutputDirectory extends Object implements ITeXOutputDirectory
Implements fetching an output stream from memory. You can use it, for example, when you don't want the accompanying output (like a log file) to be written to disk but you'd like to read it afterwards from memory.
| Constructor and Description |
|---|
TeXMemoryOutputDirectory()
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Disposes the instance.
|
InputStream |
getFile(String fileName,
String[] fullName)
Returns the stream to read from.
|
InputStream |
getFile(String fileName,
String[] fullName,
boolean searchSubdirectories)
Returns the stream to read from.
|
OutputStream |
getOutputFile(String fileName,
String[] fullName)
Returns the stream to write to.
|
public final InputStream getFile(String fileName, String[] fullName) throws IOException
Returns the stream to read from.
Without to look for a file in subdirectories.getFile in interface ITeXInputDirectoryfileName - The file name.fullName - The full file name.
In this implementation has no effect.IOException - instance – if an I/O error occurs.public InputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories) throws IOException
Returns the stream to read from.
getFile in interface ITeXInputDirectoryfileName - The file name.fullName - The full file name.searchSubdirectories - Indicates whether to look for a file in subdirectories.
In this implementation has no effect.IOException - instance – if an I/O error occurs.public OutputStream getOutputFile(String fileName, String[] fullName) throws IOException
Returns the stream to write to.
getOutputFile in interface ITeXOutputDirectoryfileName - String value
The file name.fullName - String value in array
The full file name.IOException - IOException could be thrownpublic void close()
throws IOException
Disposes the instance.
close in interface Closeableclose in interface AutoCloseableIOException - IOException exception could be thrown if an I/O error occursCopyright © 2025 Aspose. All Rights Reserved.