173174175176177178179180
} } } handler.endElement("div"); } catch (SAXException e) { throw new IOExceptionWithCause("Unable to end a page", e); } }
189190191192193194195196
assert !inParagraph; inParagraph = true; try { handler.startElement("p"); } catch (SAXException e) { throw new IOExceptionWithCause("Unable to start a paragraph", e); } }
204205206207208209210211
assert inParagraph; inParagraph = false; try { handler.endElement("p"); } catch (SAXException e) { throw new IOExceptionWithCause("Unable to end a paragraph", e); } }
213214215216217218219220221
@Override protected void writeString(String text) throws IOException { try { handler.characters(text); } catch (SAXException e) { throw new IOExceptionWithCause( "Unable to write a string: " + text, e); } }
223224225226227228229230231
@Override protected void writeCharacters(TextPosition text) throws IOException { try { handler.characters(text.getCharacter()); } catch (SAXException e) { throw new IOExceptionWithCause( "Unable to write a character: " + text.getCharacter(), e); } }
233234235236237238239240241
@Override protected void writeWordSeparator() throws IOException { try { handler.characters(getWordSeparator()); } catch (SAXException e) { throw new IOExceptionWithCause( "Unable to write a space character", e); } }
243244245246247248249250251
@Override protected void writeLineSeparator() throws IOException { try { handler.characters("\n"); } catch (SAXException e) { throw new IOExceptionWithCause( "Unable to write a newline character", e); } }
184185186187188189190191192193194
} else if ((byte) type == ForkServer.ERROR) { try { return (Throwable) ForkObjectInputStream.readObject( input, loader); } catch (ClassNotFoundException e) { throw new IOExceptionWithCause( "Unable to deserialize an exception", e); } } else { return null; }
175176177178179180181182183184185
} else if (type == ForkServer.ERROR) { try { return (Throwable) ForkObjectInputStream.readObject( input, loader); } catch (ClassNotFoundException e) { throw new IOExceptionWithCause( "Unable to deserialize an exception", e); } } else { return null; }
8586878889909192
@Override protected void startDocument(PDDocument pdf) throws IOException { try { handler.startDocument(); } catch (SAXException e) { throw new IOExceptionWithCause("Unable to start a document", e); } }