opendap/src/main/java/opendap/dap/BooleanPrimitiveVector.java
public void externalize(DataOutputStream sink, int start, int stop, int stride) throws IOException {
        for (int i = start; i <= stop; i += stride)
            sink.writeBoolean(vals[i]);
    }
public void externalize(DataOutputStream sink, int start, int stop, int stride) throws IOException {
        for (int i = start; i <= stop; i += stride)
            sink.writeBoolean(vals[i]);
    }
Write a subset of the data to a <code>DataOutputStream</code>.

@param sink    a <code>DataOutputStream</code> to write to.
@param start  starting index (i=start)
@param stop   ending index (i<=stop)
@param stride index stride (i+=stride)
@throws IOException thrown on any <code>OutputStream</code> exception.