Class ByteArrayTextSource


  • public class ByteArrayTextSource
    extends TextSource
    Text utility.
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteArrayTextSource​(byte[] bs)
      Creates a new ByteArrayTextSource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.io.InputStream openStream()
      Returns an input stream of the text source.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteArrayTextSource

        public ByteArrayTextSource​(byte[] bs)
        Creates a new ByteArrayTextSource.
        Parameters:
        bs - the byte array
    • Method Detail

      • openStream

        public java.io.InputStream openStream()
                                       throws java.io.IOException
        Returns an input stream of the text source.
        Specified by:
        openStream in class TextSource
        Returns:
        an input stream of the text source
        Throws:
        java.io.IOException
        See Also:
        TextSource.openStream()