585586587588589590591
* Reads a symbol object from the input stream * @return the symbol * @throws IOException if the symbol could not be read */ protected Symbol readSymbol() throws IOException { return new Symbol(readString()); }
125126127128129130131132133
* Tests {@link BsonSymbolSerializer} * @throws Exception if something goes wrong */ @Test public void symbol() throws Exception { Symbol sym = new Symbol("symbol"); String obj = (String)generateAndParse(sym); assertEquals(sym, obj); }