/** * Read a properties style config from given file. */ public SimpleConfiguration(File propertiesFile) { this(); load(propertiesFile); }
/** * Read a properties style config from given file. */ public SimpleConfiguration(File propertiesFile) { this(); load(propertiesFile); }
/** * Read a properties style config from given input stream. */ public SimpleConfiguration(InputStream in) { this(); load(in); }
/** * Read a properties style config from given input stream. */ public SimpleConfiguration(InputStream in) { this(); load(in); }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); init(); int len = in.readInt(); byte[] data = new byte[len]; in.readFully(data); ByteArrayInputStream bais = new ByteArrayInputStream(data); load(bais); } }
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); init(); int len = in.readInt(); byte[] data = new byte[len]; in.readFully(data); ByteArrayInputStream bais = new ByteArrayInputStream(data); load(bais); } }