728x90
int BUFFER_LENGTH = 1024;
  Reader m_reader = null;
  StringBuffer ebuf = new StringBuffer();
  char[] m_buffer = null;
  StringBuffer readedStr = null;

m_reader = rs.getCharacterStream("CONTENT");
    readedStr = new StringBuffer();
    m_buffer = new char[BUFFER_LENGTH];
    int readedIndex = 0;
    if (null != m_reader) {
     while ( (readedIndex = m_reader.read(m_buffer)) != -1) {
      readedStr.append(m_buffer, 0, readedIndex);
     }
    }
    m_buffer = null;
    vo.setContent(readedStr.toString());

728x90

+ Recent posts