Code example for ObjectInput

Methods: readFully

0
 
    /** 
     * {@inheritDoc} 
     */ 
    public void readExternal( ObjectInput in ) throws IOException {
        m_value = new byte[ readHeader( in ) ];
        in.readFully( m_value );
    } 
 
    /** 
     * @serialData The header (see {@link #writeHeader(ObjectOutput)}) followed 
     * by the <code>byte</code> values. 
     */ 
    public void writeExternal( ObjectOutput out ) throws IOException {
        writeHeader( out );
        out.write( m_value );
    } 
 
    ////////// protected //////////////////////////////////////////////////////