Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.io.pof
Interface PortableObject

All Known Subinterfaces:
EvolvablePortableObject
All Known Implementing Classes:
AbstractAggregator, AbstractBigDecimalAggregator, AbstractComparableAggregator, AbstractCompositeExtractor, AbstractDoubleAggregator, AbstractLongAggregator, AbstractPofPath, AbstractPriorityTask, AllFilter, AlwaysFilter, AndFilter, AnyFilter, ArrayFilter, BetweenFilter, BigDecimalAverage, BigDecimalMax, BigDecimalMin, BigDecimalSum, ChainedComparator, ChainedExtractor, ComparableMax, ComparableMin, ComparisonFilter, ComparisonValueExtractor, CompositeAggregator, CompositeAggregator.Parallel, CompositeKey, CompositeProcessor, CompositeUpdater, ConditionalExtractor, ConditionalProcessor, ConditionalPut, ConditionalPutAll, ConditionalRemove, ContainsAllFilter, ContainsAnyFilter, ContainsFilter, Count, DistinctValues, DoubleAverage, DoubleMax, DoubleMin, DoubleSum, EntryComparator, EntryExtractor, EqualsFilter, ExtractorComparator, ExtractorEventTransformer, ExtractorFilter, ExtractorProcessor, FilterTrigger, GreaterEqualsFilter, GreaterFilter, GroupAggregator, GroupAggregator.Parallel, IdentityExtractor, InFilter, InKeySetFilter, InverseComparator, IsNotNullFilter, IsNullFilter, KeyAssociatedFilter, KeyExtractor, LessEqualsFilter, LessFilter, LikeFilter, LimitFilter, LongMax, LongMin, LongSum, MapEventFilter, MapEventTransformerFilter, MultiExtractor, NeverFilter, NotEqualsFilter, NotFilter, NullFilter, NullImplementation.NullEntryProcessor, NullImplementation.NullMap, NullImplementation.NullObservableMap, NullImplementation.NullSet, NullImplementation.NullValueExtractor, NumberIncrementor, NumberMultiplier, OrFilter, Ownership, PartitionedFilter, PartitionSet, PermissionInfo, PofExtractor, PofUpdater, PortableException, PreloadRequest, PresentFilter, PriorityAggregator, PriorityFilter, PriorityProcessor, PropertyManipulator, PropertyProcessor, QueryRecorder, ReducerAggregator, ReflectionExtractor, ReflectionUpdater, RegexFilter, RequestPolicyException, RequestTimeoutException, SafeComparator, SemiLiteEventTransformer, SimpleDocument, SimpleElement, SimplePartitionKey, SimplePofPath, SimpleQueryRecord, SimpleQueryRecord.PartialResult, SimpleQueryRecord.PartialResult.AbstractRecordableStep, SimpleQueryRecord.PartialResult.ExplainStep, SimpleQueryRecord.PartialResult.IndexLookupRecord, SimpleQueryRecord.PartialResult.Step, SimpleQueryRecord.PartialResult.TraceStep, SimpleValue, UID, UpdaterProcessor, UUID, ValueChangeEventFilter, VersionedPut, VersionedPutAll, WorkManager.AbstractWork, WorkManager.CollectMembershipInfo, WorkManager.ReleaseWork, WorkManager.RequestStatus, WorkManager.ScheduleWork, WorkManager.SendFeedback, WorkManager.WorkStatus, XorFilter

public interface PortableObject

The PortableObject interface is implemented by Java classes that can self- serialize and deserialize their state to and from a POF data stream.

The readExternal(com.tangosol.io.pof.PofReader) and writeExternal(com.tangosol.io.pof.PofWriter) methods of the PortableObject interface are implemented by a class to give the class complete control its own POF serialization and deserialization.

Since:
Coherence 3.2
Author:
cp/jh 2006.07.13
See Also:
PofReader, PofWriter

Method Summary
 void readExternal(PofReader in)
          Restore the contents of a user type instance by reading its state using the specified PofReader object.
 void writeExternal(PofWriter out)
          Save the contents of a POF user type instance by writing its state using the specified PofWriter object.

 

Method Detail

readExternal

void readExternal(PofReader in)
                  throws java.io.IOException
Restore the contents of a user type instance by reading its state using the specified PofReader object.
Parameters:
in - the PofReader from which to read the object's state
Throws:
java.io.IOException - if an I/O error occurs

writeExternal

void writeExternal(PofWriter out)
                   throws java.io.IOException
Save the contents of a POF user type instance by writing its state using the specified PofWriter object.
Parameters:
out - the PofWriter to which to write the object's state
Throws:
java.io.IOException - if an I/O error occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.