Examples of reset()


Examples of org.exist.util.io.CachingFilterInputStream.reset()

                        //html document
                        try {

                            //reset the stream to the start, as we need to reuse since attempting to parse to XML
                            cfis.reset();

                            //parse html to xml(html)
                           
                            //we have to use CloseShieldInputStream otherwise the parser closes the stream and we cant later reread
                            final InputStream shieldedInputStream = new CloseShieldInputStream(cfis);
View Full Code Here

Examples of org.exist.util.serializer.SAXSerializer.reset()

            Sequence seq = Marshaller.demarshall(broker, new StringReader(serialized));
            assertTrue(Type.subTypeOf(seq.getItemType(), Type.NODE));
            NodeValue n = (NodeValue) seq.itemAt(0);

            writer = new StringWriter();
            serializer.reset();
            serializer.setOutput(writer, new Properties());
            n.toSAX(broker, serializer, new Properties());
            System.out.println(writer.toString());
        } catch (Exception e) {
            e.printStackTrace();
View Full Code Here

Examples of org.exist.xquery.CompiledXQuery.reset()

            } finally {
              if (pm != null) {
                context.getProfiler().traceQueryEnd(context);
                pm.queryCompleted(context.getWatchDog());
              }
              compiled.reset();
            context.reset();
            }
           
        } catch (final Exception e) {
          //XXX: log
View Full Code Here

Examples of org.exist.xquery.PathExpr.reset()

                {collections = collectQueryInfo(scanResults(seq));}
            session.addQueryResult(seq);
            resp.setCollections(new QueryResponseCollections(collections));
            resp.setHits(seq.getItemCount());
            resp.setQueryTime(System.currentTimeMillis() - start);
            expr.reset();
            context.reset();
        } catch (final Exception e) {
            LOG.debug(e.getMessage(), e);
            throw new RemoteException("query execution failed: " + e.getMessage());
        } finally {
View Full Code Here

Examples of org.exist.xquery.XQueryContext.reset()

              if (pm != null) {
                context.getProfiler().traceQueryEnd(context);
                pm.queryCompleted(context.getWatchDog());
              }
              compiled.reset();
            context.reset();
            }
           
        } catch (final Exception e) {
          //XXX: log
          e.printStackTrace();
View Full Code Here

Examples of org.exist.xupdate.XUpdateProcessor.reset()

                    "   <xu:remove select=\"//item[@id='2']/price\"/>" +
                    XUPDATE_END;
            Modification[] modifications = proc.parse(new InputSource(new StringReader(xupdate)));
            assertNotNull(modifications);
            modifications[0].process(transaction);
            proc.reset();

            checkIndex(broker, docs, "892", 0);
            checkIndex(broker, docs, "tab", 1);
            checkIndex(broker, docs, "le8", 0);
View Full Code Here

Examples of org.exoplatform.services.organization.UserProfile.reset()

            UIAccountEditInputSet accountInput = uiUserInfo.getChild(UIAccountEditInputSet.class);
            UIUserProfileInputSet userProfile = uiUserInfo.getChild(UIUserProfileInputSet.class);
            uiUserInfo.setRenderSibling(UIListUsers.class);
            accountInput.reset();
            userProfile.reset();
            event.getRequestContext().setProcessRender(true);
        }
    }

    public static class BackActionListener extends EventListener<UIUserInfo> {
View Full Code Here

Examples of org.exoplatform.services.rest.tools.ByteArrayContainerResponseWriter.reset()

      assertEquals("Hamlet", book.getTitle());
      assertEquals("William Shakespeare", book.getAuthor());
      assertTrue(book.isSendByPost());

      // ResourceBook2#m2()
      writer.reset();
      handler.reset();
      response = launcher.service("POST", "/", "", h, null, writer, null);
      assertEquals(200, response.getStatus());
      assertEquals("application/json", response.getContentType().toString());
      parser.parse(new ByteArrayInputStream(writer.getBody()), handler);
View Full Code Here

Examples of org.exoplatform.web.controller.regexp.REParser.reset()

         }
         routingDisjunction.accept(transformer);
         RERenderer.render(routingDisjunction, routingRegex);

         //
         parser.reset();
         RENode.Disjunction renderingDisjunction = parser.parseDisjunction();
         ValueResolverFactory factory = new ValueResolverFactory();
         renderingDisjunction.accept(transformer);
         List<ValueResolverFactory.Alternative> alt =  factory.foo(renderingDisjunction);
         renderingRegexes = new Regex[alt.size()];
View Full Code Here

Examples of org.exoplatform.web.controller.router.URIWriter.reset()

            else
            {
               controllerContext.renderURL(resource.getParameters(minified, locale), writer);
               urls.put(buffer.toString(), mode);
               buffer.setLength(0);
               writer.reset(buffer);
            }           
         }
      }

      //
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.