Examples of wrap()


Examples of org.msgpack.unpacker.BufferUnpacker.wrap()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  tmpl.write(packer, v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker();
  unpacker.wrap(bytes);
  FinalClass ret = tmpl.read(unpacker, null);
  assertEquals(v, ret);
    }

    @Test @Override
View Full Code Here

Examples of org.msgpack.unpacker.BufferUnpacker.wrap()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  tmpl.write(packer, v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker();
  unpacker.wrap(bytes);
  ModifiersFieldsClass ret = tmpl.read(unpacker, null);
  assertEquals(v, ret);
    }

    @Test @Override
View Full Code Here

Examples of org.msgpack.unpacker.BufferUnpacker.wrap()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  tmpl.write(packer, v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker();
  unpacker.wrap(bytes);
  ModifiersFieldsClassNotNullable ret = tmpl.read(unpacker, null);
  assertEquals(v, ret);
    }

    @Test @Override
View Full Code Here

Examples of org.msgpack.unpacker.BufferUnpacker.wrap()

  ByteArrayOutputStream out = new ByteArrayOutputStream();
  Packer packer = msgpack.createPacker(out);
  tmpl.write(packer, v);
  byte[] bytes = out.toByteArray();
  BufferUnpacker unpacker = msgpack.createBufferUnpacker();
  unpacker.wrap(bytes);
  UserDefinedTypeFieldsClass ret = tmpl.read(unpacker, null);
  assertEquals(v, ret);
    }

    @Test @Override
View Full Code Here

Examples of org.nutz.el.Operator.wrap()

  private Deque<Object> OperatorTree(Queue<Object> rpn){
    Deque<Object> operand = new LinkedList<Object>();
    while(!rpn.isEmpty()){
      if(rpn.peek() instanceof Operator){
        Operator opt = (Operator) rpn.poll();
        opt.wrap(operand);
        operand.addFirst(opt);
        continue;
      }
      if(rpn.peek() instanceof IdentifierObj){
        ((IdentifierObj) rpn.peek()).setEc(ec);
View Full Code Here

Examples of org.pdf4j.saxon.dom.DocumentWrapper.wrap()

    public NodeInfo setSource(Source source) throws org.pdf4j.saxon.trans.XPathException {
        if (source instanceof DOMSource) {
            Node node = ((DOMSource)source).getNode();
            String baseURI = source.getSystemId();
            DocumentWrapper documentWrapper = new DocumentWrapper(node.getOwnerDocument(), baseURI, config);
            NodeWrapper nodeWrapper = documentWrapper.wrap(node);
            if (stripSpace) {
                StrippedDocument sdoc = new StrippedDocument(documentWrapper, AllElementStripper.getInstance());
                return sdoc.wrap(nodeWrapper);
            } else {
                return nodeWrapper;
View Full Code Here

Examples of org.pdf4j.saxon.om.StrippedDocument.wrap()

        if (source instanceof DOMSource || source instanceof NodeInfo) {
            start = config.unravel(source);
            if (stripper != null) {
                DocumentInfo docInfo = start.getDocumentRoot();
                StrippedDocument strippedDoc = new StrippedDocument(docInfo, stripper);
                start = strippedDoc.wrap(start);
            }

        } else {
            // we have a SAXSource or StreamSource
            Builder b;
View Full Code Here

Examples of org.sonatype.aether.util.concurrency.RunnableErrorForwarder.wrap()

        for ( ArtifactDownload artifactDownload : artifactDownloads )
        {
            FileRepositoryWorker worker = new FileRepositoryWorker( artifactDownload, repository, session );
            worker.setLogger( logger );
            worker.setFileProcessor( fileProcessor );
            executor.execute( errorForwarder.wrap( worker ) );
        }

        for ( MetadataDownload metadataDownload : metadataDownloads )
        {
            FileRepositoryWorker worker = new FileRepositoryWorker( metadataDownload, repository, session );
View Full Code Here

Examples of org.springframework.aop.framework.adapter.AdvisorAdapterRegistry.wrap()

      proxyFactory.addAdvice(new RemoteInvocationTraceInterceptor(getExporterName()));
    }
    if (this.interceptors != null) {
      AdvisorAdapterRegistry adapterRegistry = GlobalAdvisorAdapterRegistry.getInstance();
      for (int i = 0; i < this.interceptors.length; i++) {
        proxyFactory.addAdvisor(adapterRegistry.wrap(this.interceptors[i]));
      }
    }
    proxyFactory.setTarget(getService());
    return proxyFactory.getProxy(getBeanClassLoader());
  }
View Full Code Here

Examples of org.springframework.hateoas.core.EmbeddedWrappers.wrap()

  @Before
  public void setUp() {

    EmbeddedWrappers wrappers = new EmbeddedWrappers(false);
    EmbeddedWrapper wrapper = wrappers.wrap("Embedded", "foo");
    this.resources = new Resources<EmbeddedWrapper>(Collections.singleton(wrapper));
  }

  /**
   * @see DATAREST-317
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.