mustang/src/main/java/org/mustangproject/ZUGFeRD/ZUGFeRDExporter.java
public boolean isValidA1(InputStream file) {
		
		ByteArrayDataSource fd;
		try {
			fd = new ByteArrayDataSource(file);
			PreflightParser parser = new PreflightParser(fd);
			return getA1ParserValidationResult(parser);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			return false;
		}

	}
/***
	 * Will return a boolean if the inputstream is valid PDF/A-1 and close the input stream
	 * @param file
	 * @return
	 */
Will return a boolean if the inputstream is valid PDF/A-1 and close the input stream
@param file
@return
Will return a boolean if the inputstream is valid PDF / A - 1 and close the input stream @param file @return
public boolean isValidA1(InputStream file) {
		ByteArrayDataSource fd;
		try {
			fd = new ByteArrayDataSource(file);
			PreflightParser parser = new PreflightParser(fd);
			return getA1ParserValidationResult(parser);
		} catch (IOException e) {
			e.printStackTrace();
			return false;
		}
	}
public boolean isValidA1 ( InputStream file ) { ByteArrayDataSource fd ; try { fd = new ByteArrayDataSource ( file ) ; PreflightParser parser = new PreflightParser ( fd ) ; return getA1ParserValidationResult ( parser ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; return false ; } }
Will return a boolean if the inputstream is valid PDF/A-1 and close the input stream
 @param file
 @return
Will return a boolean if the inputstream is valid PDF / A - 1 and close the input stream @param file @return
// TODO Auto-generated catch block
