Package de.undercouch.bson4jackson.types

Examples of de.undercouch.bson4jackson.types.Symbol


   * 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());
  }
View Full Code Here


   * 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);
  }
View Full Code Here

TOP

Related Classes of de.undercouch.bson4jackson.types.Symbol

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.