Examples of reset()


Examples of org.vfny.geoserver.util.requests.RewindableInputStream.reset()

            LOGGER.fine("Charset detection phase 1. Inferred encoding: " +
                        encInfo.toString());
        }

       // Rewinding to beginning of data
        stream.reset();

        String ENCODING     = encInfo.getEncoding().toUpperCase(Locale.ENGLISH);
        Boolean isBigEndian = encInfo.isBigEndian();
        boolean hasBOM      = encInfo.hasBOM();
View Full Code Here

Examples of org.vngx.jsch.Packet.reset()

      // string  compression_algorithms_server_to_client
      // string  languages_client_to_server
      // string  languages_server_to_client
      // byte    boolean first_kex_packet_follows
      // uint32  0 (reserved for future extension)
      kexPacket.reset();
      kexBuffer.putByte(SSH_MSG_KEXINIT);
      random.fill(kexBuffer.getArray(), kexBuffer.getIndex(), KEX_COOKIE_LENGTH);
      kexBuffer.skip(KEX_COOKIE_LENGTH)// Move index forward
      kexBuffer.putString(_session.getConfig().getString(SessionConfig.KEX_ALGORITHMS));
      kexBuffer.putString(_session.getConfig().getString(SessionConfig.KEX_SERVER_HOST_KEY));
View Full Code Here

Examples of org.watermint.sourcecolon.org.opensolaris.opengrok.util.GetOpts.reset()

            if (cfg == null) {
                cfg = new Configuration();
            }

            // Now we can handle all the other options..
            getOpts.reset();
            while ((cmd = getOpts.getOpt()) != -1) {
                switch (cmd) {
                    case 'x':
                        createDict = true;
                        runIndex = false;
View Full Code Here

Examples of org.waveprotocol.wave.client.editor.Editor.reset()

    timerService.tick(1000);
    assertNull(DocHelper.getElementWithTagName(fullDoc, AnnotationPaint.SPREAD_FULL_TAGNAME));

    doc.setAnnotation(3, 5, "style/color", "red");
    editor.removeContentAndUnrender();
    editor.reset();
    timerService.tick(1000);
    assertNull(DocHelper.getElementWithTagName(fullDoc, AnnotationPaint.SPREAD_FULL_TAGNAME));

  }
}
View Full Code Here

Examples of org.wicketstuff.progressbar.spring.Task.reset()

    taskService.finish(taskId);
    assertNull("Task removed from service with finish",
        taskService.getTask(taskId));

    data[0] = 0;
    task.reset();
    assertEquals("Task progress is 0 after reset", 0, task.getProgress());
    // cancel should stop task at 50%
    task.cancel();
    Long newTaskId = taskService.scheduleAndStart(task);
    assertFalse("Unique id generated", taskId.equals(newTaskId));
View Full Code Here

Examples of org.xbib.elasticsearch.common.io.stream.BytesStreamOutput.reset()

            RemoteTransportException tx = new RemoteTransportException(transport.nodeName(), transport.wrapAddress(channel.getLocalAddress()), action, error);
            ThrowableObjectOutputStream too = new ThrowableObjectOutputStream(stream);
            too.writeObject(tx);
            too.close();
        } catch (NotSerializableException e) {
            stream.reset();
            stream.skip(org.elasticsearch.transport.netty.NettyHeader.HEADER_SIZE);
            RemoteTransportException tx = new RemoteTransportException(transport.nodeName(), transport.wrapAddress(channel.getLocalAddress()), action, new NotSerializableTransportException(error));
            ThrowableObjectOutputStream too = new ThrowableObjectOutputStream(stream);
            too.writeObject(tx);
            too.close();
View Full Code Here

Examples of org.xhtmlrenderer.extend.ReplacedElementFactory.reset()

    }

    public void reset() {
        for (Iterator i = this.factoryList.iterator(); i.hasNext(); ) {
            ReplacedElementFactory factory = (ReplacedElementFactory)i.next();
            factory.reset();
        }      
    }

    public void remove(Element e) {
        for (Iterator i = this.factoryList.iterator(); i.hasNext(); ) {
View Full Code Here

Examples of org.xhtmlrenderer.render.BlockBox.reset()

                        child.getStyle().isAvoidPageBreakInside() && child.crossesPageBreak(c);
                    boolean needPageClear = child.isNeedPageClear();
                    boolean keepWithInline = child.isNeedsKeepWithInline(c);
                    if (tryToAvoidPageBreak || needPageClear || keepWithInline) {
                        c.restoreStateForRelayout(relayoutData.getLayoutState());
                        child.reset(c);
                        layoutBlockChild(
                                c, block, child, true, childOffset, pageCount, relayoutData.getLayoutState());
   
                        if (tryToAvoidPageBreak && child.crossesPageBreak(c) && ! keepWithInline) {
                            c.restoreStateForRelayout(relayoutData.getLayoutState());
View Full Code Here

Examples of org.xml.sax.helpers.NamespaceSupport.reset()

                    if( ( child.getNodeType() == Node.COMMENT_NODE ) || ( child.getNodeType() == Node.PROCESSING_INSTRUCTION_NODE ) ) {
                        break;
                    }
                }
                nsSupport.reset();
            }
        }
        catch( final IOException e ) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.xmlBlaster.jms.XBBytesMessage.reset()

            }
           
            msg.writeBytes(content, 0, content.length);
            XBDestination dest = new XBDestination("someTopic", null);
            msg.setJMSDestination(dest);
            msg.reset();
           
            byte[] content2 = new byte[256];
            msg.readBytes(content2);
            for (int i=0; i < content.length; i++)
               assertEquals("byte nr. '" + i + "' is wrong", content[i], content2[i]);
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.