/** * Server-side serialization for OPeNDAP variables (sub-classes of * <code>BaseType</code>). * This does not send the entire class as the Java <code>Serializable</code> * interface does, rather it sends only the binary data values. Other software * is responsible for sending variable type information (see <code>DDS</code>). * <p/> * Writes data to a <code>DataOutputStream</code>. This method is used * on the server side of the OPeNDAP client/server connection, and possibly * by GUI clients which need to download OPeNDAP data, manipulate it, and * then re-save it as a binary file. * * @param sink a <code>DataOutputStream</code> to write to. * @throws IOException thrown on any <code>OutputStream</code> exception. * @see BaseType * @see DDS * @see ServerDDS */ public void serialize(String dataset, DataOutputStream sink, CEEvaluator ce, Object specialO) throws NoSuchVariableException, DAP2ServerSideException, IOException { if (!isRead()) read(dataset, specialO); if (ce.evalClauses(specialO)) externalize(sink); }
/** * Set the state of this variable's projection. <code>true</code> means * that this variable is part of the current projection as defined by * the current constraint expression, otherwise the current projection * for this variable should be <code>false</code>. * * @param state <code>true</code> if the variable is part of the current * projection, <code>false</code> otherwise. * @param all This parameter has no effect for this type of variable. * @see CEEvaluator */ public void setProject(boolean state, boolean all) { setProjected(state); }
if (constrained && !isProject()) return;
if (constrained && !isProject()) return;
if (!isProject()) return; super.printVal(os, space, print_decl_p);