/** * Parses a BEncoded _object from an input stream. * * @param stream An input stream. This stream * must support marking. * @return A BEncoded _object. * @ if marking is not supported on the supplied stream. * @ if an I/O error occurs. */ public static BEncodeObject read(PeterO.Support.InputStream stream) { if(!stream.markSupported())throw new ArgumentException(); return new BEncodeObject(readObject(stream)); }