opendap/src/main/java/opendap/dap/BaseTypePrimitiveVector.java
public synchronized void deserialize(DataInputStream source,
                                         ServerVersion sv,
                                         StatusUI statusUI)
            throws IOException, EOFException, DataReadException {
        for (int i = 0; i < vals.length; i++) {
            // create new variable from template
            vals[i] = (BaseType) getTemplate().clone();
            ((ClientIO) vals[i]).deserialize(source, sv, statusUI);
            if (statusUI != null && statusUI.userCancelled())
                throw new DataReadException("User cancelled");
        }
    }
public synchronized void deserialize(DataInputStream source,
                                         ServerVersion sv,
                                         StatusUI statusUI)
            throws IOException, EOFException, DataReadException {
        for (int i = 0; i < vals.length; i++) {
            // create new variable from template
            vals[i] = (BaseType) getTemplate().clone();
            ((ClientIO) vals[i]).deserialize(source, sv, statusUI);
            if (statusUI != null && statusUI.userCancelled())
                throw new DataReadException("User cancelled");
        }
    }
public synchronized void deserialize ( DataInputStream source , ServerVersion sv , StatusUI statusUI ) throws IOException , EOFException , DataReadException { for ( int i = 0 ; i < vals . length ; i ++ ) { // create new variable from template
 vals [ i ] = ( BaseType ) getTemplate ( ) . clone ( ) ; ( ( ClientIO ) vals [ i ] ) . deserialize ( source , sv , statusUI ) ; if ( statusUI != null && statusUI . userCancelled ( ) ) throw new DataReadException ( "User cancelled" ) ; } }
Reads data from a <code>DataInputStream</code>. This method is only used
on the client side of the OPeNDAP client/server connection.

@param source   a <code>DataInputStream</code> to read from.
@param sv       The <code>ServerVersion</code> returned by the server.
(used by <code>DSequence</code> to determine which protocol version was
used).
@param statusUI The <code>StatusUI</code> object to use for GUI updates
and user cancellation notification (may be null).
@throws DataReadException when invalid data is read, or if the user
cancels the download.
@throws EOFException      if EOF is found before the variable is completely
deserialized.
@throws IOException       thrown on any other InputStream exception.
@see ClientIO#deserialize(DataInputStream, ServerVersion, StatusUI)
Reads data from a <code > DataInputStream< / code > . This method is only used on the client side of the OPeNDAP client / server connection .