| org.netbeans.modules.cnd.repository.support.SelfPersistent
All known Subclasses: org.netbeans.modules.cnd.modelimpl.csm.core.ClassifierContainer, org.netbeans.modules.cnd.modelimpl.repository.AbstractKey, org.netbeans.modules.cnd.apt.support.StartEntry, org.netbeans.modules.cnd.modelimpl.uid.KeyBasedUID, org.netbeans.modules.cnd.repository.sfs.TestKey, org.netbeans.modules.cnd.modelimpl.csm.core.OffsetableIdentifiableBase, org.netbeans.modules.cnd.modelimpl.csm.core.DeclarationContainer, org.netbeans.modules.cnd.repository.testbench.sfs.TestKey, org.netbeans.modules.cnd.repository.sfs.index.SimpleFileIndex, org.netbeans.modules.cnd.modelimpl.csm.TemplateParameterTypeImpl, org.netbeans.modules.cnd.modelimpl.csm.NamespaceImpl, org.netbeans.modules.cnd.modelimpl.csm.core.GraphContainer, org.netbeans.modules.cnd.modelimpl.csm.core.ProjectComponent, org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase, org.netbeans.modules.cnd.repository.sfs.index.CompactFileIndex, org.netbeans.modules.cnd.modelimpl.csm.TemplateParameterImpl, org.netbeans.modules.cnd.modelimpl.csm.core.FileContainer, org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl, org.netbeans.modules.cnd.modelimpl.uid.ObjectBasedUID,
SelfPersistent | public interface SelfPersistent (Code) | | interface for object which supports writing own data in stream
usually such object has also constructor for creating from stream
i.e.
class Clazz implements SelfPersistent {
public Clazz(DataInput input) throws IOException {
field = input.read();
}
public void write (DataOutput output) throws IOException {
output.write(field);
}
}
author: Sergey Grinev |
|
|