}
}
// Ask FontBox to parse the file for us
TrueTypeFont font;
TTFParser parser = new TTFParser();
if (tis != null && tis.hasFile()) {
font = parser.parseTTF(tis.getFile());
} else {
font = parser.parseTTF(stream);
}
// Report the details of the font
metadata.set(Metadata.CONTENT_TYPE, TYPE.toString());
metadata.set(TikaCoreProperties.CREATED, font.getHeader().getCreated().getTime());