Examples of reset()


Examples of net.rubyeye.xmemcached.buffer.IoBuffer.reset()

    assertEquals(60, buffer.remaining());
    buffer.mark();

    buffer.position(32);
    assertEquals(32, buffer.position());
    buffer.reset();
    assertEquals(4, buffer.position());

    assertTrue(buffer.hasRemaining());
    buffer.position(64);
    assertFalse(buffer.hasRemaining());
View Full Code Here

Examples of net.sf.joafip.store.service.objectfortest.BobWithDifferentMethod.reset()

        classLoaderProvider, classInfoFactory);
    final BobWithDifferentMethod bob = (BobWithDifferentMethod) proxyManager2
        .newInstanceNoConstruction(classInfo, storageInfo, this, null,
            false).getObject();
    assertFalse("must not set object state", setted);
    bob.reset(0, 0, 0);
    assertTrue("must set object state", setted);
  }

  @Override
  public boolean isAutoSaveEnabled() { // NOPMD
View Full Code Here

Examples of net.sf.saxon.Controller.reset()

            transformer.transform(xml, result);
        } catch (TransformerException e) {
            throw new ReportGenerationException(e);
        } finally {
            if (transformer != null) {
                transformer.reset();
                transformer.clearParameters();
                transformer.clearDocumentPool();
                System.gc();
            }
        }
View Full Code Here

Examples of net.sf.saxon.event.Builder.reset()

            if (stripSpace != Whitespace.UNSPECIFIED) {
                options.setStripSpace(stripSpace);
            }
            new Sender(pipe).send(source, builder, options);
            TinyDocumentImpl doc = (TinyDocumentImpl)builder.getCurrentRoot();
            builder.reset();
            return (Document)DocumentOverNodeInfo.wrap(doc);
        } catch (XPathException err) {
            throw new SAXException(err);
        }
    }
View Full Code Here

Examples of net.sf.saxon.event.SequenceOutputter.reset()

            seq.setPipelineConfiguration(pipe);
            c2.setTemporaryReceiver(seq);
            process(c2);
            seq.close();
            Item result = seq.getFirstItem();
            seq.reset();
            return result;
        }
    }

    /**
 
View Full Code Here

Examples of net.sf.saxon.tinytree.TinyBuilder.reset()

            if (stripSpace != Whitespace.UNSPECIFIED) {
                options.setStripSpace(stripSpace);
            }
            new Sender(pipe).send(source, builder, options);
            TinyDocumentImpl doc = (TinyDocumentImpl)builder.getCurrentRoot();
            builder.reset();
            return (Document)DocumentOverNodeInfo.wrap(doc);
        } catch (XPathException err) {
            throw new SAXException(err);
        }
    }
View Full Code Here

Examples of net.sf.saxon.tree.TreeBuilder.reset()

            config.reuseStyleParser(styleParser);
        } else {
            sender.send(aug, commentStripper, new ParseOptions());
        }
        doc = (DocumentImpl)styleBuilder.getCurrentRoot();
        styleBuilder.reset();

        if (aug.isPleaseCloseAfterUse()) {
            aug.close();
        }
View Full Code Here

Examples of net.shadewind.racetrack.Car.reset()

    int playerId = command.intArgument(0);
    Player player = players.get(playerId);
    if (player == null)
      throw new CommException("Unknown player id = " + playerId);
    Car car = player.getCar();
    car.reset();
    car.pushPosition(new Vector2i(
        command.intArgument(1),
        command.intArgument(2)));
    listener.carReset(player);
  }
View Full Code Here

Examples of net.sourceforge.stat4j.Calculator.reset()

  public void reset() {
    Iterator itr = calculators.keySet().iterator();
    while (itr.hasNext()) {
      Object key = itr.next();
      Calculator c = (Calculator) calculators.get(key);
      c.reset();
    }
  }

  public void init() {
    // load factory
View Full Code Here

Examples of net.timewalker.ffmq3.common.message.BytesMessageImpl.reset()

    byte[] dummy = { (byte)1 , (byte)2 , (byte)3 };
   
    // Boolean
    msg = new BytesMessageImpl();
    msg.writeBytes(dummy);
    msg.reset();
    assertEquals(true,msg.readBoolean());
   
    // Byte
    msg = new BytesMessageImpl();
    msg.writeBytes(dummy);
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.