Example usage for java.io ObjectOutput getClass

List of usage examples for java.io ObjectOutput getClass

Introduction

In this page you can find the example usage for java.io ObjectOutput getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.kepler.objectmanager.cache.ActorCacheObject.java

/**
 * serialize this class//from w  w w  . j  av a  2s  .com
 * 
 *@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();
}