Code example for ObjectInputStream

Methods: readUTF

0
     
    protected void doIdent() 
    { 
        try 
        { 
            String ident = input.readUTF();
            log("Client reports ident " + ident + "... let's fuck with them.");
            writeString("ERROR"); 
            writeString("UNKNOWN"); 
        } 
        catch (IOException e)
        { 
            // TODO Auto-generated catch block 
            e.printStackTrace();
        } 
    } 
 
    protected void doTimestamp() 
    { 
        try 
        {