public void load(java.io.Reader toLoad) { Kajabity.Tools.Java.JavaPropertyReader reader = new Kajabity.Tools.Java.JavaPropertyReader(this); reader.Parse(biz.ritter.io.Reader2Stream.convert(toLoad)); // new biz.ritter.io.StreamWrapper ( // biz.ritter.io.Reader2Stream.convert (toLoad), null // better replace by converted Apache commons IO // ) // ); /* old but only with changes usable * Kajabity.Tools.Java.JavaPropertyReader reader = new Kajabity.Tools.Java.JavaPropertyReader(this); * reader.Parse(toLoad); */ }
/// <summary> /// Load Java Properties from a stream expecting the format as described in <see cref="JavaPropertyReader"/>. /// </summary> /// <param name="streamIn">An input stream to read properties from.</param> /// <exception cref="ParseException">If the stream source is invalid.</exception> public void Load(Stream streamIn) { JavaPropertyReader reader = new JavaPropertyReader(this); reader.Parse(streamIn); }
/// <summary> /// Load Java Properties from a stream with the specified encoding and /// expecting the format as described in <see cref="JavaPropertyReader"/>. /// </summary> /// <param name="streamIn">An input stream to read properties from.</param> /// <param name="encoding">The stream's encoding.</param> public void Load( Stream streamIn, Encoding encoding ) { JavaPropertyReader reader = new JavaPropertyReader( this ); reader.Parse( streamIn, encoding ); }
/// <summary> /// Load Java Properties from a stream expecting the format as described in <see cref="JavaPropertyReader"/>. /// </summary> /// <param name="streamIn">An input stream to read properties from.</param> /// <exception cref="ParseException">If the stream source is invalid.</exception> public void Load( Stream streamIn ) { JavaPropertyReader reader = new JavaPropertyReader( this ); reader.Parse( streamIn ); }
/// <summary> /// Load Java Properties from a stream with the specified encoding and /// expecting the format as described in <see cref="JavaPropertyReader"/>. /// </summary> /// <param name="streamIn">An input stream to read properties from.</param> /// <param name="encoding">The stream's encoding.</param> public void Load(Stream streamIn, Encoding encoding) { JavaPropertyReader reader = new JavaPropertyReader(this); reader.Parse(streamIn, encoding); }