format/src/main/java/com/github/sadikovi/riff/TypeDescription.java
/**
   * Read type description from input stream.
   * Does not close stream.
   * @param stream input stream with object data
   * @throws IOException when io error happens, or class not found
   */
Read type description from input stream.
Does not close stream.
@param stream input stream with object data
@throws IOException when io error happens, or class not found
Read type description from input stream . Does not close stream . @param stream input stream with object data @throws IOException when io error happens or class not found
public static TypeDescription readFrom(InputStream stream) throws IOException {
    ObjectInputStream in = new ObjectInputStream(stream);
    try {
      return (TypeDescription) in.readObject();
    } catch (ClassNotFoundException err) {
      throw new IOException("Failed to deserialize type description", err);
    }
  }
public static TypeDescription readFrom ( InputStream stream ) throws IOException { ObjectInputStream in = new ObjectInputStream ( stream ) ; try { return ( TypeDescription ) in . readObject ( ) ; } catch ( ClassNotFoundException err ) { throw new IOException ( "Failed to deserialize type description" , err ) ; } }
Read type description from input stream.
Read type description from input stream .