Package com.ibm.commons.util

Examples of com.ibm.commons.util.FastStringBuffer


    /**
     * @ibm-api
     */
    public String upto( char c ) throws IOException {
        FastStringBuffer b = new FastStringBuffer();
        do {
            int cc = getChar();
            if( cc<0 || cc==c ) {
                return b.toString();
            }
            b.append(cc);
            count--; index++; position++;
        } while(true);
    }
View Full Code Here


    // ======================================================================
    // Serialization
    // ======================================================================

    public String writeToString() {
        FastStringBuffer b = new FastStringBuffer(4096);
        for( Map.Entry<String,String> e: _properties.entrySet() ) {
            String key = e.getKey();
            String value = e.getValue();
            if(b.length()>0) {
                b.append((char)0);
            }
            b.append(key);
            b.append('=');
            b.append(value);
        }
        return b.toString();
    }
View Full Code Here

TOP

Related Classes of com.ibm.commons.util.FastStringBuffer

Copyright © 2018 www.massapicom. 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.