Code example for DataOutputStream

Methods: writeByte, writeUTF

0
	public String getFactoryID(){
		return SplitDockPlaceholderPropertyFactory.ID; 
	} 
 
	public void store( DataOutputStream out ) throws IOException{
		out.writeUTF( placeholder.toString() );
		if( backup == null ){
			out.writeByte( 0 );
		} 
		else if( backup instanceof SplitDockProperty ){
			out.writeByte( 1 );
			backup.store( out );
		} 
		else if( backup instanceof SplitDockPathProperty ){
			out.writeByte( 2 );
			backup.store( out );
		} 
		else{ 
			throw new IllegalStateException( "never happens" );
		} 
	}