com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class TeXMemoryOutputDirectory

  • All Implemented Interfaces:
    com.aspose.tex.ITeXInputDirectory, com.aspose.tex.ITeXOutputDirectory, Closeable, AutoCloseable


    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 Detail

      • TeXMemoryOutputDirectory

        public TeXMemoryOutputDirectory()

        Creates new instance.

    • Method Detail

      • getFile

        public final InputStream getFile(String fileName,
                                         String[] fullName)
                                  throws IOException

        Returns the stream to read from.

        Without to look for a file in subdirectories.
        Specified by:
        getFile in interface com.aspose.tex.ITeXInputDirectory
        Parameters:
        fileName - The file name.
        fullName - The full file name. In this implementation has no effect.
        Returns:
        The stream.
        Throws:
        IOException
      • getFile

        public InputStream getFile(String fileName,
                                   String[] fullName,
                                   boolean searchSubdirectories)
                            throws IOException

        Returns the stream to read from.

        Specified by:
        getFile in interface com.aspose.tex.ITeXInputDirectory
        Parameters:
        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.
        Returns:
        The stream.
        Throws:
        IOException
      • getOutputFile

        public OutputStream getOutputFile(String fileName,
                                          String[] fullName)
                                   throws IOException

        Returns the stream to write to.

        Specified by:
        getOutputFile in interface com.aspose.tex.ITeXOutputDirectory
        Parameters:
        fileName - String value The file name.
        fullName - String value in array The full file name.
        Returns:
        OutputStream instance
        Throws:
        IOException