/** * This will load a document from a file. * * @param filename The name of the file to load. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(String filename) throws IOException { FDFParser parser = new FDFParser(filename); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from a file. * * @param file The name of the file to load. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(File file) throws IOException { FDFParser parser = new FDFParser(file); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from an input stream. * * @param input The stream that contains the document. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(InputStream input) throws IOException { FDFParser parser = new FDFParser(input); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from a file. * * @param file The name of the file to load. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(File file) throws IOException { FDFParser parser = new FDFParser(file); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from an input stream. * * @param input The stream that contains the document. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(InputStream input) throws IOException { FDFParser parser = new FDFParser(input); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from a file. * * @param filename The name of the file to load. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(String filename) throws IOException { FDFParser parser = new FDFParser(filename); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from a file. * * @param filename The name of the file to load. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(String filename) throws IOException { FDFParser parser = new FDFParser(filename); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from a file. * * @param file The name of the file to load. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(File file) throws IOException { FDFParser parser = new FDFParser(file); parser.parse(); return new FDFDocument(parser.getDocument()); }
/** * This will load a document from an input stream. * * @param input The stream that contains the document. * * @return The document that was loaded. * * @throws IOException If there is an error reading from the stream. */ public static FDFDocument load(InputStream input) throws IOException { FDFParser parser = new FDFParser(input); parser.parse(); return new FDFDocument(parser.getDocument()); }