Must be disposed to ensure that the readers are closed and the file free for other uses. Does not need to be disposed if a byte array is used.
55565758596061
public final class StreamFactory { public static Dataset create(byte[] data) throws IOException { return read( new BinaryReader(data), new Source(data)); }
6364656667686970717273
public static Dataset create(String filename) throws IOException { FileInputStream fileInputStream = new FileInputStream(filename); try { return read( new BinaryReader(fileInputStream), new Source(filename)); } catch (Exception e) { return null; } finally { fileInputStream.close(); }