Package com.ibm.commons.util

Examples of com.ibm.commons.util.FastStringBuffer.load()


     * Read a string from a reader.
     * @ibm-api
     */
  public static String readString(Reader reader) throws IOException {
    FastStringBuffer sb = new FastStringBuffer();
    sb.load(reader);
    return sb.toString();
  }
   
    /**
     * Read a string from an input stream using the default encoding.
View Full Code Here


     * Read a string from an input stream using the default encoding.
     * @ibm-api
     */
  public static String readString(InputStream is) throws IOException {
    FastStringBuffer sb = new FastStringBuffer();
    sb.load(new InputStreamReader(is));
    return sb.toString();
  }
   
    /**
     * Read a string from an input stream using a specific encoding.
View Full Code Here

     * Read a string from an input stream using a specific encoding.
     * @ibm-api
     */
  public static String readString(InputStream is, String encoding) throws IOException {
    FastStringBuffer sb = new FastStringBuffer();
    sb.load(new InputStreamReader(is,encoding));
    return sb.toString();
  }

    /**
     * Fill a buffer as much as we can from InputStream.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.