public int serialize ( OutputStream os ) throws IOException { DataOutputStream dos = new DataOutputStream ( os ) ; int bytesWritten = 0 ; bytesWritten += serializeHeader ( dos ) ; for ( int i = 0 ; i < dataLength ; i ++ ) { dos . writeInt ( data32 [ i ] ) ; } bytesWritten += dataLength * 4 ; return bytesWritten ; }
Serialize a Trie2_32 onto an OutputStream .