Code example for DataInputStream

Methods: readBoolean, readLong, readUTF

0
            } 
        } 
         
        public StreamContextManager.StreamContext deserialize(DataInputStream dis) throws IOException
        { 
            String targetFile = dis.readUTF();
            long expectedBytes = dis.readLong();
            boolean bVal = dis.readBoolean();
             
            RequestCountSampler.Cardinality cardinality = null;
            if ( bVal )
                cardinality = RequestCountSampler.Cardinality.serializer().deserialize(dis);
            return new StreamContext(targetFile, expectedBytes, cardinality);
        } 
    } 
     
    public static class StreamStatus 
    { 
        private static ICompactSerializer<StreamStatus> serializer_;
         
        static