Examples of reset()


Examples of org.caffinitas.mapper.core.codec.Binder.reset()

        Binder binder = new Binder(columns, true, primaryKeyColumns, PersistMode.INSERT, serializeDefault);

        int protocolVersion = persistenceSession.persistenceManager.protocolVersion;

        for (Map.Entry entry : instance.getCluster().entrySet()) {
            binder.reset();

            buildModifyBindColumns(instance, binder, partitionAttributes);
            if (clusteringColumn != null) {
                binder.setBytesUnsafe(clusteringColumn, clusteringPrimitive.serialize(entry.getKey(), protocolVersion));
            } else {
View Full Code Here

Examples of org.candle.decompiler.intermediate.graph.context.GraphUpdatedListener.reset()

      //reset the update listener.
      if(!gul.isUpdated()) {
        break;
      }
      else {
        gul.reset();
      }
    }
    igc.getGraph().removeGraphListener(gul);
  }
}
View Full Code Here

Examples of org.carrot2.text.analysis.ITokenizer.reset()

                {
                    try
                    {
                        short tokenType;

                        ts.reset(new StringReader(fieldValue));
                        if ((tokenType = ts.nextToken()) != ITokenizer.TT_EOF)
                        {
                            if (hadTokens) addFieldSeparator(documentIndex);
                            do
                            {
View Full Code Here

Examples of org.carrot2.text.util.MutableCharArray.reset()

        {
            final char [] word = wordImages[i];
            if (buffer.length < word.length) buffer = new char [word.length];

            CharArrayUtils.toLowerCase(word, buffer);
            mutableCharArray.reset(buffer, 0, word.length);
            if (lexData.isCommonWord(mutableCharArray))
            {
                types[i] |= ITokenizer.TF_COMMON_WORD;
            }
        }
View Full Code Here

Examples of org.clapper.util.text.XStringBuilder.reset()

        for (int i = 0; i < testData.length; i++)
        {
            String after = HTMLUtil.convertCharacterEntities(testData[i].before);
            bufAfter.reset(after);
            bufAfter.encodeMetacharacters();
            bufExpected.reset(testData[i].after);
            bufExpected.encodeMetacharacters();
            assertEquals(testData[i].before + " converts to \"" +
                         bufAfter.toString() +
                         "\", instead of the expected value of \"" +
                         bufExpected.toString() + "\"",
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQBytesMessage.reset()

      }
    } catch (JMSException ex) {
      ex.printStackTrace();
    }
    try {
      msg.reset();
      assertTrue(msg.getBodyLength() == (len * 8));
    } catch (Throwable e) {
      e.printStackTrace();
      assertTrue(false);
    }
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQStreamMessage.reset()

    try {
      int test = 4;
      msg.writeInt(test);
      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Integer(test).toString()));
    }catch(JMSException jmsEx){
      jmsEx.printStackTrace();
View Full Code Here

Examples of org.codehaus.activemq.util.BitArray.reset()

    public void writePacket(Packet packet, DataOutput dataOut) throws IOException {
        ActiveMQMessage msg = (ActiveMQMessage) packet;
        byte[] payload = msg.getBodyAsBytes();
       
        BitArray ba = msg.getBitArray();
        ba.reset();
       
        ba.set(ActiveMQMessage.CORRELATION_INDEX, msg.getJMSCorrelationID() != null);
        ba.set(ActiveMQMessage.TYPE_INDEX, msg.getJMSType() != null);
        ba.set(ActiveMQMessage.BROKER_NAME_INDEX, msg.getEntryBrokerName() != null);
        ba.set(ActiveMQMessage.CLUSTER_NAME_INDEX, msg.getEntryClusterName() != null);
View Full Code Here

Examples of org.codehaus.jackson.map.type.ClassKey.reset()

        // Still no match? How about more generic ones?
        // Mappings for super-classes?
        if (_transitiveClassMappings != null) {
            for (Class<?> curr = type; (curr != null); curr = curr.getSuperclass()) {
                key.reset(curr);
                ser = _transitiveClassMappings.get(key);
                if (ser != null) {
                    return (JsonSerializer<T>) ser;
                }
            }
View Full Code Here

Examples of org.codehaus.plexus.util.InterpolationFilterReader.reset()

     */
    private String replaceProperties(final Properties properties, final String string) throws IOException
    {
        final StringReader stringReader = new StringReader(string);
        InterpolationFilterReader reader = new InterpolationFilterReader(stringReader, properties, "${", "}");
        reader.reset();
        reader = new InterpolationFilterReader(
                reader,
                new BeanProperties(this.project),
                BEGIN_TOKEN,
                END_TOKEN);
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.