Examples of contentsAsString()


Examples of com.ctc.wstx.util.TextBuffer.contentsAsString()

                tb.append(INPUT.substring(i, i+1));
            }
        }

        assertEquals(INPUT, tb.toString());
        assertEquals(INPUT, tb.contentsAsString());
        assertFalse(tb.endsWith("shor"));
        assertTrue(tb.endsWith("so as not to be too short"));
        assertFalse(tb.isAllWhitespace());

        assertTrue(tb.equalsString(INPUT));
View Full Code Here

Examples of com.ctc.wstx.util.TextBuffer.contentsAsString()

                tb.append(INPUT.substring(i, i+1));
            }
        }

        assertEquals(INPUT, tb.toString());
        assertEquals(INPUT, tb.contentsAsString());
        assertFalse(tb.endsWith("shor"));
        assertTrue(tb.endsWith("so as not to be too short"));
        assertFalse(tb.isAllWhitespace());

        assertTrue(tb.equalsString(INPUT));
View Full Code Here

Examples of com.fasterxml.jackson.core.util.TextBuffer.contentsAsString()

    {
        TextBuffer tb = new TextBuffer(new BufferRecycler());
        for (int i = 0; i < 2000; ++i) {
            tb.append("abc", 0, 3);
        }
        String str = tb.contentsAsString();
        assertEquals(6000, str.length());
        assertEquals(6000, tb.contentsAsArray().length);

        tb.resetWithShared(new char[] { 'a' }, 0, 1);
        assertEquals(1, tb.toString().length());
View Full Code Here

Examples of com.fasterxml.jackson.core.util.TextBuffer.contentsAsString()

         TextBuffer tb = new TextBuffer(new BufferRecycler());
         tb.append('a');
         tb.append(STR, 0, len);
         tb.append('c');
         assertEquals(len+2, tb.size());
         assertEquals(EXP, tb.contentsAsString());
         // then char[]
         tb = new TextBuffer(new BufferRecycler());
         tb.append('a');
         tb.append(STR.toCharArray(), 0, len);
View Full Code Here

Examples of com.fasterxml.jackson.core.util.TextBuffer.contentsAsString()

         tb = new TextBuffer(new BufferRecycler());
         tb.append('a');
         tb.append(STR.toCharArray(), 0, len);
         tb.append('c');
         assertEquals(len+2, tb.size());
         assertEquals(EXP, tb.contentsAsString());
      }

      // [Core#152]
      public void testExpand()
      {
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.