private Schema createSchemaFromFile(String fileName) {
return createSchemaFromFile(fileName, fileName);
}
private Schema createSchemaFromFile(String name, final String fileName) {
return new SchemaImpl(name, null, true, fileName + " desc", new InputStreamSource() {
public InputStream getInputStream() throws IOException {
return new FileInputStream(new File(srcdir, fileName));
}
});
}