Package java.io

Examples of java.io.CharArrayReader


  char[] str_chars = new char[str.length()];
  str.getChars(0, str.length(), str_chars, 0);
  char[] read_buf = new char[12];

  CharArrayReader car = new CharArrayReader(str_chars);
  SimpleRead fr = new SimpleRead(car);

  try
    {
    harness.check(fr.read(), 'I', "read()");
View Full Code Here


{

public
MarkReset(char[] ca)
{
  super(new CharArrayReader(ca));
}
View Full Code Here

// Constructor for test suite
public
MarkReset()
{
  super(new CharArrayReader(new char[1]));
}
View Full Code Here

            //As the spec/javadoc for this method indicate this is to be used for
            //large text values (i.e. LONGVARCHAR) PG doesn't have a separate
            //long string datatype, but with toast the text datatype is capable of
            //handling very large values.  Thus the implementation ends up calling
            //getString() since there is no current way to stream the value from the server
            return new CharArrayReader(getString(i).toCharArray());
        }
        else
        {
            // In 7.1 Handle as BLOBS so return the LargeObject input stream
            Encoding encoding = connection.getEncoding();
View Full Code Here

  public abstract Class getReturnedClass();

  public void set(PreparedStatement st, Object value, int index) throws SQLException {
    char[] chars = toInternalFormat( value );
    st.setCharacterStream(index, new CharArrayReader(chars), chars.length);
  }
View Full Code Here

    this.mapper = mapper;
  }
 

  public InstrumentedCode instrument(Code code) {
    StringTemplateGroup templates = new StringTemplateGroup(new CharArrayReader(TEMPLATE));
    ANTLRStringStream stream = new ANTLRStringStream(code.getSourceCode());
    Integer fileId = mapper.map(code.getFilePath());
    String mappedName = String.valueOf(fileId);
    stream.name = mappedName;
    ES3InstrumentLexer lexer = new ES3InstrumentLexer(stream);
View Full Code Here

        }
      }
      else {
        chars = (char[]) value;
      }
      CharArrayReader reader = new CharArrayReader( chars );
      st.setCharacterStream( index, reader, chars.length );
    }
    else {
      st.setNull( index, sqlTypes()[0] );
    }
View Full Code Here

  public abstract Class getReturnedClass();

  public void set(PreparedStatement st, Object value, int index) throws SQLException {
    char[] chars = toInternalFormat( value );
    st.setCharacterStream(index, new CharArrayReader(chars), chars.length);
  }
View Full Code Here

  public abstract Class getReturnedClass();

  public void set(PreparedStatement st, Object value, int index) throws SQLException {
    char[] chars = toInternalFormat( value );
    st.setCharacterStream(index, new CharArrayReader(chars), chars.length);
  }
View Full Code Here

        public String getString() {
            return buf.toString();
        }

        public Reader getReader() {
            return new CharArrayReader(buf.toCharArray());
        }
View Full Code Here

TOP

Related Classes of java.io.CharArrayReader

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.