|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.granite.messaging.jmf.JMFSerializer
public class JMFSerializer
| Field Summary | |
|---|---|
protected CodecRegistry |
codecRegistry
|
protected SharedContext |
context
|
protected OutputStream |
outputStream
|
protected Map<Object,Integer> |
storedObjects
|
protected Map<String,Integer> |
storedStrings
|
| Constructor Summary | |
|---|---|
JMFSerializer(OutputStream outputStream,
SharedContext context)
|
|
| Method Summary | |
|---|---|
void |
addToStoredObjects(Object o)
|
void |
addToStoredStrings(String s)
|
void |
close()
|
void |
flush()
|
String |
getAlias(String className)
|
void |
getAndWriteProperty(Object obj,
Property property)
|
OutputStream |
getOutputStream()
|
Reflection |
getReflection()
Return the Reflection registered in the global JMF SharedContext. |
SharedContext |
getSharedContext()
|
int |
indexOfStoredObjects(Object o)
|
int |
indexOfStoredStrings(String s)
|
void |
write(byte[] b)
Deprecated. |
void |
write(byte[] b,
int off,
int len)
Deprecated. |
void |
write(int b)
Deprecated. |
void |
writeBoolean(boolean v)
|
void |
writeByte(int v)
|
void |
writeBytes(String s)
Deprecated. |
void |
writeChar(int v)
|
void |
writeChars(String s)
Deprecated. |
void |
writeDouble(double v)
|
void |
writeFloat(float v)
|
void |
writeInt(int v)
|
void |
writeLong(long v)
|
void |
writeObject(Object obj)
|
void |
writeShort(int v)
|
void |
writeUTF(String s)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Map<String,Integer> storedStrings
protected final Map<Object,Integer> storedObjects
protected final OutputStream outputStream
protected final SharedContext context
protected final CodecRegistry codecRegistry
| Constructor Detail |
|---|
public JMFSerializer(OutputStream outputStream,
SharedContext context)
| Method Detail |
|---|
public void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOException
public void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOException
public void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOException
public void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOException
public void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOException
public void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOException
public void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOException
public void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOException
public void writeUTF(String s)
throws IOException
writeUTF in interface DataOutputIOException
public void writeObject(Object obj)
throws IOException
writeObject in interface ObjectOutputIOException
public void flush()
throws IOException
flush in interface ObjectOutputIOException
public void close()
throws IOException
close in interface ObjectOutputIOException
@Deprecated
public void write(int b)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in interface ExtendedObjectOutputIOException
@Deprecated
public void write(byte[] b)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in interface ExtendedObjectOutputIOException
@Deprecated
public void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in interface ObjectOutputwrite in interface ExtendedObjectOutputIOException
@Deprecated
public void writeBytes(String s)
throws IOException
writeBytes in interface DataOutputwriteBytes in interface ExtendedObjectOutputIOException
@Deprecated
public void writeChars(String s)
throws IOException
writeChars in interface DataOutputwriteChars in interface ExtendedObjectOutputIOExceptionpublic SharedContext getSharedContext()
getSharedContext in interface OutputContextpublic OutputStream getOutputStream()
getOutputStream in interface OutputContextpublic void addToStoredStrings(String s)
addToStoredStrings in interface OutputContextpublic int indexOfStoredStrings(String s)
indexOfStoredStrings in interface OutputContextpublic void addToStoredObjects(Object o)
addToStoredObjects in interface OutputContextpublic int indexOfStoredObjects(Object o)
indexOfStoredObjects in interface OutputContextpublic Reflection getReflection()
ExtendedObjectOutputReflection registered in the global JMF SharedContext.
getReflection in interface ExtendedObjectOutputpublic String getAlias(String className)
getAlias in interface ExtendedObjectOutput
public void getAndWriteProperty(Object obj,
Property property)
throws IOException,
IllegalAccessException,
InvocationTargetException
getAndWriteProperty in interface ExtendedObjectOutputIOException
IllegalAccessException
InvocationTargetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||