List of usage examples for java.io ObjectOutput write
public void write(byte b[], int off, int len) throws IOException;
From source file:ByteArray.java
/** * Write the byte array out w/o compression * * @param out write bytes here./* w w w. j av a 2s .c om*/ * * @exception IOException thrown on error */ public void writeExternal(ObjectOutput out) throws IOException { out.writeInt(length); out.write(array, offset, length); }
From source file:gov.nih.nci.caarray.external.v1_0.data.AbstractDataColumn.java
/** * Optimizes the serialized form of this class by compressing the values array. * /* w w w . ja v a 2 s . c o m*/ * {@inheritDoc} */ public void writeExternal(ObjectOutput oo) throws IOException { oo.writeObject(this.quantitationType); byte[] serializedValues = CaArrayUtils.serialize(getSerializableValues()); oo.writeInt(serializedValues.length); oo.write(serializedValues, 0, serializedValues.length); }
From source file:org.kepler.objectmanager.cache.ActorCacheObject.java
/** * serialize this class//from ww w. j a v a 2s . c om * *@param out * Description of the Parameter *@exception IOException * Description of the Exception */ public void writeExternal(ObjectOutput out) throws IOException { if (isDebugging) log.debug("writeExternal(" + out.getClass().getName() + ")"); byte[] b = _actorString.getBytes(); out.write(b, 0, b.length); out.flush(); }