...
- null
- java.lang.String
- boolean
- byte
- short
- double
- int
- long
- float
- java.util.Map
- org.apache.solr.common.SolrDocument
- org.apache.solr.common.SolrDocumentList
Wiki Markup byte\[\]
- java.util.Iterator
- java.util.Date
- org.apache.solr.common.util.NamedList
- org.apache.solr.common.util.SimpleOrderedMap
Wiki Markup Object\[\] (items must be of any known type) \\
How to marshal/unmarshal
No Format |
---|
//example Map m= new HashMap(); m.put("hello", "world"); OutputStream os = new ByteArrayOutputStream(); new JavaBinCodec().marshal(m,os); bytes b = ((ByteArrayOutputStream)os).toByteArray() //now read the Object back InputStream is =new ByteArrayInputStream(b); Map m1 = new JavaBinCodec().unmarshal(is); |
...