/** * Reads configuration data from the given <code>InputStream</code> and * returns a new <code>Dictionary</code> object containing the data. * <p> * This method reads from the current location in the stream upto the end of * the stream but does not close the stream at the end. * * @param ins * The <code>InputStream</code> from which to read the * configuration data. * @return A <code>Dictionary</code> object containing the configuration * data. This object may be empty if the stream contains no * configuration data. * @throws IOException * If an error occurrs reading from the stream. This exception * is also thrown if a syntax error is encountered. */ public static Dictionary read( InputStream ins ) throws IOException { return new ConfigurationHandler().readInternal( ins ); }
/** * Reads configuration data from the given <code>InputStream</code> and * returns a new <code>Dictionary</code> object containing the data. * <p> * This method reads from the current location in the stream upto the end of * the stream but does not close the stream at the end. * * @param ins * The <code>InputStream</code> from which to read the * configuration data. * @return A <code>Dictionary</code> object containing the configuration * data. This object may be empty if the stream contains no * configuration data. * @throws IOException * If an error occurrs reading from the stream. This exception * is also thrown if a syntax error is encountered. */ public static Dictionary read( InputStream ins ) throws IOException { return new ConfigurationHandler().readInternal( ins ); }
/** * Reads configuration data from the given <code>InputStream</code> and * returns a new <code>Dictionary</code> object containing the data. * <p> * This method reads from the current location in the stream upto the end of * the stream but does not close the stream at the end. * * @param ins * The <code>InputStream</code> from which to read the * configuration data. * @return A <code>Dictionary</code> object containing the configuration * data. This object may be empty if the stream contains no * configuration data. * @throws IOException * If an error occurrs reading from the stream. This exception * is also thrown if a syntax error is encountered. */ public static Dictionary read( InputStream ins ) throws IOException { return new ConfigurationHandler().readInternal( ins ); }