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

private void parseFragment ( InputStream in ) throws IOException , SAXException { byte [ ] buffer = new byte [ BUFFER_SIZE ] ; int length ; while ( ( length = in . read ( buffer ) ) != - 1 ) { try { appendBytes ( this . pointer , buffer , 0 , length ) ; } catch ( ExpatException e ) { throw new ParseException ( e . getMessage ( ) , this . locator ) ; } } }
parses xml from the given input stream .
