Class BeanByteSource

    • Constructor Detail

      • BeanByteSource

        protected BeanByteSource()
        Creates an instance.
    • Method Detail

      • readUtf8

        public String readUtf8()
        Reads the source, converting to UTF-8.
        Returns:
        the UTF-8 string
        Throws:
        UncheckedIOException - if an IO error occurs
      • readUtf8UsingBom

        public String readUtf8UsingBom()
        Reads the source, converting to UTF-8 using a Byte-Order Mark if available.
        Returns:
        the UTF-8 string
        Throws:
        UncheckedIOException - if an IO error occurs
      • asCharSourceUtf8

        public CharSource asCharSourceUtf8()
        Returns a CharSource for the same bytes, converted to UTF-8.

        This does not read the underlying source.

        Returns:
        the equivalent CharSource
      • asCharSourceUtf8UsingBom

        public CharSource asCharSourceUtf8UsingBom()
        Returns a CharSource for the File, converted to UTF-8 using a Byte-Order Mark if available.
        Returns:
        the equivalent CharSource