public class TeXMemoryOutputDirectory extends Object implements com.aspose.tex.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 com.aspose.tex.ITeXInputDirectory
fileName
- The file name.fullName
- The full file name.
In this implementation has no effect.IOException
public InputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories) throws IOException
Returns the stream to read from.
getFile
in interface com.aspose.tex.ITeXInputDirectory
fileName
- 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
public OutputStream getOutputFile(String fileName, String[] fullName) throws IOException
Returns the stream to write to.
getOutputFile
in interface com.aspose.tex.ITeXOutputDirectory
fileName
- 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 Closeable
close
in interface AutoCloseable
IOException
- IOException exception could be thrown if an I/O error occurs