Examples of Deserializer


Examples of org.hibernate.search.indexes.serialization.spi.Deserializer

   * Convert a byte[] to a List of LuceneWork (assuming the same SerializationProvider is used of course)
   */
  @Override
  public List<LuceneWork> toLuceneWorks(byte[] data) {
    try {
      Deserializer deserializer = provider.getDeserializer();
      LuceneWorkHydrator hydrator = new LuceneWorkHydrator( searchFactory );
      deserializer.deserialize( data, hydrator );
      return hydrator.getLuceneWorks();
    }
    catch ( RuntimeException e ) {
      if ( e instanceof SearchException ) {
        throw e;
View Full Code Here

Examples of org.jsefa.Deserializer

      addColumn("schedule", "holidaysallowance", "int4");
      addColumn("schedule", "holidayscountry", "varchar(8)");
      addColumn("schedule", "holidaysprovince", "varchar(8)");

      // Create the standard holidays
      Deserializer holidayReader = CsvIOFactory.createFactory(Holiday.class).createDeserializer();

      holidayReader.open(new InputStreamReader(this.getClass().getResourceAsStream("holidays_de.csv")));

      while (holidayReader.hasNext())
      {
        Holiday holiday = holidayReader.next();

        update("INSERT INTO holiday (id,name,country,province,day,month,year) values (?,?,?,?,?,?,?)",
                new Object[]
                {
                        createKeelId("Holiday"), holiday.getName(), holiday.getCountry(),
View Full Code Here

Examples of org.neo4j.smack.serialization.Deserializer

    SerializationFactory serializationFactory = new SerializationFactory();
   
    public void onEvent(final CorePipelineEvent event)
            throws Exception {
        if(!event.hasFailed()) {
            Deserializer d = serializationFactory.getDeserializer(event.getInputBuffer());
            event.setDeserializedContent(event.getEndpoint().getDeserializationStrategy().deserialize(d));
        }
    }
View Full Code Here

Examples of org.red5.io.object.Deserializer

    @Override
  public void init() throws ServletException {
    super.init();
    try {
      decoder = new RTMPProtocolDecoder();
      deserializer = new Deserializer();
      decoder.setDeserializer(deserializer);
    } catch (Exception e) {
      // TODO Auto-generated catch block
      log.error("{}", e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.