Examples of mark()


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

                });

                cfis = new CachingFilterInputStream(cache, bodyAsStream);

                //mark the start of the stream
                cfis.mark(Integer.MAX_VALUE);


                // determine the type of the response document
                final Header responseContentType = method.getResponseHeader("Content-Type");
View Full Code Here

Examples of org.fakereplace.util.JumpMarker.mark()

                                b.addInvokestatic(methodReflectionLocation, "invoke", REPLACED_METHOD_DESCRIPTOR);
                                b.add(Opcode.GOTO);
                                JumpMarker finish = JumpUtils.addJumpInstruction(b);
                                performRealCall.mark();
                                b.addInvokevirtual(Method.class.getName(), METHOD_NAME, METHOD_DESCRIPTOR);
                                finish.mark();
                                it.writeByte(CodeIterator.NOP, index);
                                it.writeByte(CodeIterator.NOP, index + 1);
                                it.writeByte(CodeIterator.NOP, index + 2);
                                it.insert(b.get());
                            }
View Full Code Here

Examples of org.geotools.styling.StyleFactory.mark()

            // from SLD spec:
            // The default if neither an ExternalGraphic nor a Mark is specified is to use the default
            // mark of a "square" with a 50%-gray fill and a black outline, with a size of 6 pixels,
            // unless an explicit Size is specified
            StyleFactory sf = CommonFactoryFinder.getStyleFactory();
            Mark defaultMark = sf.mark(ff.literal("square"),
                    sf.fill(null, ff.literal("#808080"), null),
                    sf.createStroke(ff.literal("#000000"), ff.literal(1))
            );
            if (size <= 0) {
                size = 6;
View Full Code Here

Examples of org.htmlparser.lexer.Source.mark()

        source = new InputStreamSource (new Stream (new ByteArrayInputStream (reference.getBytes (DEFAULT_CHARSET))), null);
        assertTrue ("not markable", source.markSupported ());
        buffer = new StringBuffer (reference.length ());
        for (int i = 0; i < 25; i++)
            buffer.append ((char)source.read ());
        source.mark (88);
        for (int i = 0; i < 25; i++)
            source.read ();
        source.reset ();
        while (-1 != (c = source.read ()))
            buffer.append ((char)c);
View Full Code Here

Examples of org.htmlparser.lexer.Stream.mark()

            }

            bytes1.clear ();
            bytes2.clear ();

            stream.mark (1000); // the 1000 is ignored
            for (int i = 0; i < 1000; i++)
            {
                b = stream.read ();
                bytes1.add (new Byte ((byte)b));
            }
View Full Code Here

Examples of org.jasig.portal.xml.stream.BufferedXMLEventReader.mark()

            XMLEventReader xmlEventReader = staxSource.getXMLEventReader();
            if (xmlEventReader != null) {
                if (xmlEventReader instanceof BufferedXMLEventReader) {
                    final BufferedXMLEventReader bufferedXMLEventReader = (BufferedXMLEventReader)xmlEventReader;
                    bufferedXMLEventReader.reset();
                    bufferedXMLEventReader.mark(-1);
                    return bufferedXMLEventReader;
                }
               
                return new BufferedXMLEventReader(xmlEventReader, -1);
            }
View Full Code Here

Examples of org.jboss.classfilewriter.code.CodeAttribute.mark()

            ca.aconstNull();
            ca.astore(2);
            ca.aconstNull();
            ca.astore(3);
            // so here we have the array index on top of the stack, followed by the array
            CodeLocation loopBegin = ca.mark();
            BranchEnd loopEnd = ca.ifeq();
            ca.dup();
            ca.iinc(0, -1);
            ca.iload(0); // load the array index into the stack
            ca.dupX1(); // index, array, index, array
View Full Code Here

Examples of org.jets3t.service.io.SegmentedRepeatableFileInputStream.mark()

            offset++;
        }
        assertEquals("Couldn't read up to target offset", targetOffset, offset);
        assertEquals("Unexpected amount of data available",
            testFileLength - targetOffset, segFIS.available());
        segFIS.mark(0);
        while ((read = segFIS.read()) != -1) {
            assertEquals("Read unexpected byte at offset " + offset,
                (offset % 256), read);
            offset++;
        }
View Full Code Here

Examples of org.jredis.bench.Util.Timer.mark()

        mark.countDown();                   // go
       
        System.out.print(" ...\n");
        completion.await();                 // ... done

        timer.mark();
       
        /* report */
          // overall - this is throughput
        System.out.format("===== %s =====\n",cmd.code);
        System.out.format("%d concurrent clients (%d %ss each) [host: %s]\n", threadCnt, reqCnt, cmd.code, host);
View Full Code Here

Examples of org.jruby.embed.io.ReaderInputStream.mark()

    @Test
    public void testMark() throws IOException {
        logger1.info("mark");
        ReaderInputStream instance = new ReaderInputStream(new FileReader(filename));
        int readlimit = 0;
        instance.mark(readlimit);
        instance.close();
    }

    /**
     * Test of markSupported method, of class ReaderInputStream.
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.