git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1610825 13f79535-47bb-0310-9956-ffa450edef68tags/fop-2_0
@@ -205,7 +205,8 @@ public class TTFReader extends AbstractFontReader { | |||
* @return The TTF as an object, null if the font is incompatible. | |||
* @throws IOException In case of an I/O problem | |||
*/ | |||
public TTFFile loadTTF(String fileName, String fontName, boolean useKerning, boolean useAdvanced) throws IOException { | |||
public TTFFile loadTTF(String fileName, String fontName, boolean useKerning, boolean useAdvanced) | |||
throws IOException { | |||
TTFFile ttfFile = new TTFFile(useKerning, useAdvanced); | |||
log.info("Reading " + fileName + "..."); | |||
InputStream stream = new FileInputStream(fileName); |
@@ -168,7 +168,8 @@ public class PDFExtensionHandler extends DefaultHandler implements ContentHandle | |||
} else if (dictionary.getDictionaryType() != PDFDictionaryType.Dictionary) { | |||
this.returnedObject = new PDFDictionaryAttachment(dictionary); | |||
} else { | |||
throw new SAXException(new IllegalStateException("generic dictionary not permitted at outer level")); | |||
throw new SAXException( | |||
new IllegalStateException("generic dictionary not permitted at outer level")); | |||
} | |||
} else { | |||
throw new SAXException(new IllegalStateException("collections stack is empty or not a dictionary")); |