openamf/src/java/org/openamf/io AMFSerializer.java,1.53,1.54
Sean Sullivan <[email protected]> Sat, 25 Mar 2006 23:41:43 +0000
| Newsgroups | gmane.comp.java.openamf.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/openamf/openamf/src/java/org/openamf/io
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1765/src/java/org/openamf/io
Modified Files:
AMFSerializer.java
Log Message:
support char[]
Index: AMFSerializer.java
===================================================================
RCS file: /cvsroot/openamf/openamf/src/java/org/openamf/io/AMFSerializer.java,v
retrieving revision 1.53
retrieving revision 1.54
diff -C2 -d -r1.53 -r1.54
*** AMFSerializer.java 22 Mar 2006 21:52:16 -0000 1.53
--- AMFSerializer.java 25 Mar 2006 23:41:41 -0000 1.54
***************
*** 199,203 ****
Serializable interface in order to be serialized
That should still be followed if possible, but there is
! no good reason to inforce it.
*/
writeObject(value);
--- 199,203 ----
Serializable interface in order to be serialized
That should still be followed if possible, but there is
! no good reason to enforce it.
*/
writeObject(value);
***************
*** 296,299 ****
--- 296,308 ----
throw new NullPointerException("componentType is null");
}
+ else if (componentType == Character.TYPE)
+ {
+ char[] carray = (char[]) array;
+ result = new Object[carray.length];
+ for (int i = 0; i < carray.length; i++)
+ {
+ result[i] = new Character(carray[i]);
+ }
+ }
else if (componentType == Byte.TYPE)
{
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642