private void parseFragment(Reader in) throws IOException, SAXException {
  char[] buffer=new char[BUFFER_SIZE / 2];
  int length;
  while ((length=in.read(buffer)) != -1) {
    try {
      appendChars(this.pointer,buffer,0,length);
    }
 catch (    ExpatException e) {
      throw new ParseException(e.getMessage(),locator);
    }
  }
}

private void parseFragment ( Reader in ) throws IOException , SAXException { char [ ] buffer = new char [ BUFFER_SIZE / 2 ] ; int length ; while ( ( length = in . read ( buffer ) ) != - 1 ) { try { appendChars ( this . pointer , buffer , 0 , length ) ; } catch ( ExpatException e ) { throw new ParseException ( e . getMessage ( ) , locator ) ; } } }
parses xml from the given reader .
