throws IOException, SAXException, TikaException {
TrueTypeFont font;
TTFParser parser = new TTFParser();
TikaInputStream tis = TikaInputStream.cast(stream);
if (tis != null && tis.hasFile()) {
font = parser.parseTTF(tis.getFile());
} else {
font = parser.parseTTF(stream);
}
metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());