Skip to content
Snippets Groups Projects
Commit 62c642d7 authored by buczekp's avatar buczekp
Browse files

[LMS-1747] fixed build

SVN: 17831
parent fa2a5b99
No related branches found
No related tags found
No related merge requests found
......@@ -16,6 +16,7 @@
package ch.systemsx.cisd.common.utilities;
import java.io.File;
import java.io.InputStream;
import java.io.Reader;
import java.net.URL;
......@@ -75,6 +76,20 @@ public class XMLInfraStructure
}
}
/**
* Creates a Schema from a file
*/
public static Schema createSchema(File schemaFile)
{
try
{
return SCHEMA_FACTORY.newSchema(new StreamSource(schemaFile));
} catch (SAXException ex)
{
throw CheckedExceptionTunnel.wrapIfNecessary(ex);
}
}
/**
* Creates a Schema by a URL
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment