private void writeHeader(OutputStream stream, Header header) throws IOException {
        DataOutputStream dos = new DataOutputStream(stream);
        dos.writeUTF(HEADER);

        // Write the current version
        dos.writeInt(1);

        // Write the normalizer opType
        dos.writeUTF(header.normalizerType.toString());

        // If the header contains a custom class opName, write that too
        if (header.customStrategyClass != null) {
            dos.writeUTF(header.customStrategyClass.getName());
        }
    }
private void writeHeader ( OutputStream stream , Header header ) throws IOException { DataOutputStream dos = new DataOutputStream ( stream ) ; dos . writeUTF ( HEADER ) ; dos . writeInt ( 1 ) ; dos . writeUTF ( header . normalizerType . toString ( ) ) ; if ( header . customStrategyClass != null ) { dos . writeUTF ( header . customStrategyClass . getName ( ) ) ; } }
Write the data header

@param stream the output stream
@param header the header to write
@throws IOException