TeXMemoryOutputDirectory
Contents
[
Hide
]Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.tex.ITeXOutputDirectory
public class TeXMemoryOutputDirectory 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.
Constructors
Constructor | Description |
---|---|
TeXMemoryOutputDirectory() | Creates new instance. |
Methods
Method | Description |
---|---|
getFile(String fileName, String[] fullName) | Returns the stream to read from. |
getFile(String fileName, String[] fullName, boolean searchSubdirectories) | Returns the stream to read from. |
getOutputFile(String fileName, String[] fullName) | Returns the stream to write to. |
close() | Disposes the instance. |
TeXMemoryOutputDirectory()
public TeXMemoryOutputDirectory()
Creates new instance.
getFile(String fileName, String[] fullName)
public final InputStream getFile(String fileName, String[] fullName)
Returns the stream to read from.
Without to look for a file in subdirectories.
Parameters:
Parameter | Type | Description |
---|---|---|
fileName | java.lang.String | The file name. |
fullName | java.lang.String[] | The full file name. In this implementation has no effect. |
Returns: java.io.InputStream - The stream.
getFile(String fileName, String[] fullName, boolean searchSubdirectories)
public InputStream getFile(String fileName, String[] fullName, boolean searchSubdirectories)
Returns the stream to read from.
Parameters:
Parameter | Type | Description |
---|---|---|
fileName | java.lang.String | The file name. |
fullName | java.lang.String[] | The full file name. |
searchSubdirectories | boolean | Indicates whether to look for a file in subdirectories. In this implementation has no effect. |
Returns: java.io.InputStream - The stream.
getOutputFile(String fileName, String[] fullName)
public OutputStream getOutputFile(String fileName, String[] fullName)
Returns the stream to write to.
Parameters:
Parameter | Type | Description |
---|---|---|
fileName | java.lang.String | String value The file name. |
fullName | java.lang.String[] | String value in array The full file name. |
Returns: java.io.OutputStream - OutputStream instance
close()
public void close()
Disposes the instance.