com.aspose.font

Interfaces

Classes

Enums

Exceptions

com.aspose.font

Class ByteContentStreamSource



  • public class ByteContentStreamSource
    extends StreamSource

    Represents a stream source based on content stream.

    • Constructor Detail

      • ByteContentStreamSource

        public ByteContentStreamSource(byte[] fileContent)

        Initializes new ByteContentStreamSource object.

        Parameters:
        fileContent - File bytes.
    • Method Detail

      • getFontStream

        public InputStream getFontStream()

        Returns Font file stream. Don't forget to close the stream after use.

        Specified by:
        getFontStream in class StreamSource
        Returns:
        Font file stream.
      • deepClone

        public Object deepClone()

        Clones the ByteContentStreamSource object.

        Specified by:
        deepClone in class StreamSource
        Returns:
        Copy of the stream source object.