public void writeBean ( ThirdPartyParseable bean , EndianAwareDataOutputStream os ) { if ( bean == null ) throw new NullPointerException ( ) ; ensureContextInstantiatedForWriting ( os , bean ) ; try { bean . describeFormat ( this ) ; } catch ( UnrecognizedFormatException e ) { e . printStackTrace ( ) ; } //Shouldn't happen. popBean ( ) ; }
Write ThirdPartyParseable bean to the given EndianAwareDataOutputStream .