Here you can find the source of serializeNull(DataOutputStream dout)
private static void serializeNull(DataOutputStream dout) throws IOException
//package com.java2s; import java.io.*; public class Main { private static String tagNull = "Null"; private static void serializeNull(DataOutputStream dout) throws IOException { serializeHeaderString(tagNull, dout); serializeTrailerString(tagNull, dout); }// ww w . java 2 s.c o m private static void serializeHeaderString(String str, DataOutputStream dout) throws IOException { dout.writeUTF("[" + str); } private static void serializeTrailerString(String str, DataOutputStream dout) throws IOException { // dout.writeUTF( str + "]" ); dout.writeUTF("]"); } }