protected final class ProjectCache.CacheEntryFactory<E>
extends oracle.javatools.assembly.ObjectFactory
Constructor and Description |
---|
ProjectCache.CacheEntryFactory(oracle.javatools.assembly.AssemblyFactory factory) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
assembleImpl(java.io.DataInput input)
Implementation-specific method for assembling an Object from
the input stream.
|
void |
disassembleImpl(java.lang.Object object,
java.io.DataOutput output)
Implementation-specific method for disassembling a non-null
Object to the output stream.
|
byte |
getObjectCode()
Implementation-specific method for fetching a constant defining
this object.
|
public ProjectCache.CacheEntryFactory(oracle.javatools.assembly.AssemblyFactory factory)
public byte getObjectCode()
oracle.javatools.assembly.ObjectFactory
Implementations should not change the object code for their objects
between binary data versions, but should use the
getDisassemblyVersion()
instead for returning
versioning information.
getObjectCode
in class oracle.javatools.assembly.ObjectFactory
public java.lang.Object assembleImpl(java.io.DataInput input) throws java.io.IOException, oracle.javatools.assembly.AssemblyException
oracle.javatools.assembly.ObjectFactory
assembleImpl
in class oracle.javatools.assembly.ObjectFactory
input
- the input stream to assemble fromjava.io.IOException
- if an error occurred reading from the streamoracle.javatools.assembly.AssemblyException
- if assembly failedpublic void disassembleImpl(java.lang.Object object, java.io.DataOutput output) throws java.io.IOException, java.lang.ClassCastException, oracle.javatools.assembly.AssemblyException
oracle.javatools.assembly.ObjectFactory
disassembleImpl
in class oracle.javatools.assembly.ObjectFactory
object
- the non-null object to disassembleoutput
- the output stream to disassemble tojava.io.IOException
- if an error occurred writing to streamjava.lang.ClassCastException
- if the object is not of type expected
by this factoryoracle.javatools.assembly.AssemblyException
- if disassembly failed