org.xins.logdoc
Interface LogdocSerializable

All Known Implementing Classes:
AbstractLogdocSerializable

public interface LogdocSerializable

Interface for objects that support serialization for logdoc.

Since:
XINS 1.0.0
Version:
$Revision: 1.8 $ $Date: 2006/08/28 09:12:30 $
Author:
Ernst de Haan

Method Summary
 void serialize(LogdocStringBuffer buffer)
          Serializes this object for logging to the specified string buffer.
 

Method Detail

serialize

public void serialize(LogdocStringBuffer buffer)
               throws NullPointerException
Serializes this object for logging to the specified string buffer.

If the argument is null, then a NullPointerException should be thrown by the implementation. This can just be accomplished by dereferencing it, for example:

buffer.append("Something");

Implementations should use LogCentral.getLocale() to determine which locale (language) to choose.

Parameters:
buffer - the LogdocStringBuffer to serialize to, cannot be null.
Throws:
NullPointerException - if buffer == null.


See http://www.xins.org/.