public class ValidationUtil extends Object
Constructor and Description |
---|
ValidationUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
getInputStreamBytes(InputStream inputStream) |
static void |
validate(InputStream jobInputStream,
InputStream schemaIs)
Validates the job descriptor file against the specified schema.
|
public static void validate(InputStream jobInputStream, InputStream schemaIs) throws SAXException, IOException, JobCreationException
jobInputStream
- the job file content as an InputStreamschemaIs
- the job schemaJobCreationException
- if the job descriptor is invalidSAXException
IOException
public static byte[] getInputStreamBytes(InputStream inputStream) throws IOException
IOException