Package org.exist.storage.serializers

Examples of org.exist.storage.serializers.Serializer


        DBBroker broker = null;

        Database db = context.getDatabase();
        try {
          broker = db.getBroker();
          Serializer serializer = broker.getSerializer();
          serializer.reset();
 
          try {
            StringBuilder property = new StringBuilder();
              if (value.hasOne()) {
                  String strVal = getPropertyValue(value.itemAt(0), serializer);
View Full Code Here


    }
       
//        response.addHeader( "pragma", "no-cache" );
//        response.addHeader( "Cache-Control", "no-cache" );

        final Serializer serializer = broker.getSerializer();
      serializer.reset();
   
      final SerializerPool serializerPool = SerializerPool.getInstance();

      final SAXSerializer sax = (SAXSerializer) serializerPool.borrowObject(SAXSerializer.class);
      try {
        sax.setOutput(output, outputProperties);

        serializer.setProperties(outputProperties);
        serializer.setSAXHandlers(sax, sax);
          serializer.toSAX(resultSequence, 1, resultSequence.getItemCount(), false, false);
         
      } catch (final SAXException e) {
        throw new IOException(e);
      } finally {
        serializerPool.returnObject(sax);
View Full Code Here

        authenticator = new BasicAuthenticator(pool);
    }

    private void logResult(DBBroker broker, Sequence result) throws IOException, SAXException {
        if (LOG.isTraceEnabled() && result.getItemCount() > 0) {
            final Serializer serializer = broker.getSerializer();
            serializer.reset();

            final Item item = result.itemAt(0);
            if (Type.subTypeOf(item.getType(), Type.NODE)) {
                LOG.trace(serializer.serialize((NodeValue) item));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.exist.storage.serializers.Serializer

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.