// Path: lib-truetypeparser/src/main/java/com/jaredrummler/fontreader/io/IOUtils.java
// public static final int EOF = -1;


import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.SequenceInputStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import static com.jaredrummler.fontreader.io.IOUtils.EOF;
  public String toString() {
    // make explicit the use of the default charset
    return new String(toByteArray(), Charset.defaultCharset());
  }

  /**
   * Gets the curent contents of this byte stream as a string
   * using the specified encoding.
   *
   * @param enc
   *     the name of the character encoding
   * @return the string converted from the byte array
   * @throws UnsupportedEncodingException
   *     if the encoding is not supported
   * @see java.io.ByteArrayOutputStream#toString(String)
   */
  public String toString(final String enc) throws UnsupportedEncodingException {
    return new String(toByteArray(), enc);
  }

  /**
   * Gets the curent contents of this byte stream as a string
   * using the specified encoding.
   *
   * @param charset
   *     the character encoding
   * @return the string converted from the byte array
   * @see java.io.ByteArrayOutputStream#toString(String)
   * @since 2.5
   */
// Path: lib-truetypeparser/src/main/java/com/jaredrummler/fontreader/io/IOUtils.java
// public static final int EOF = -1;


// Path: lib-truetypeparser/src/main/java/com/jaredrummler/fontreader/io/ByteArrayOutputStream.java
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.SequenceInputStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import static com.jaredrummler.fontreader.io.IOUtils.EOF;

  public String toString() {
    // make explicit the use of the default charset
    return new String(toByteArray(), Charset.defaultCharset());
  }

  /**
   * Gets the curent contents of this byte stream as a string
   * using the specified encoding.
   *
   * @param enc
   *     the name of the character encoding
   * @return the string converted from the byte array
   * @throws UnsupportedEncodingException
   *     if the encoding is not supported
   * @see java.io.ByteArrayOutputStream#toString(String)
   */
  public String toString(final String enc) throws UnsupportedEncodingException {
    return new String(toByteArray(), enc);
  }

  /**
   * Gets the curent contents of this byte stream as a string
   * using the specified encoding.
   *
   * @param charset
   *     the character encoding
   * @return the string converted from the byte array
   * @see java.io.ByteArrayOutputStream#toString(String)
   * @since 2.5
   */
  public String toString(final Charset charset) {