ObjectId instances. ObjectId is already
serializable, but this class provides methods to handle null and non-null
instances.
| Modifier and Type | Field and Description |
|---|---|
| private static final byte | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static ObjectId | Returns: the object id, or nullthe input stream in)Read a possibly null |
| public static ObjectId | Returns: the object id; never nullthe input stream in)Read a non-null |
| public static void | write(OutputStream
the output stream out, AnyObjectId the object id to serialize; may be null id)Write a possibly null |
| public static void | writeWithoutMarker(OutputStream
the output stream out, AnyObjectId the object id to serialize; never null id)Write a non-null |
| NON_NULL_MARKER | back to summary |
|---|---|
| private static final byte NON_NULL_MARKER | |
| NULL_MARKER | back to summary |
|---|---|
| private static final byte NULL_MARKER | |
| ObjectIdSerializer | back to summary |
|---|---|
| private ObjectIdSerializer() | |
| read | back to summary |
|---|---|
| public static ObjectId read(InputStream in) throws IOException Read a possibly null
| |
| readWithoutMarker | back to summary |
|---|---|
| public static ObjectId readWithoutMarker(InputStream in) throws IOException Read a non-null
| |
| write | back to summary |
|---|---|
| public static void write(OutputStream out, AnyObjectId id) throws IOException Write a possibly null
If the id is non-null, writes a
| |
| writeWithoutMarker | back to summary |
|---|---|
| public static void writeWithoutMarker(OutputStream out, AnyObjectId id) throws IOException Write a non-null
| |