Exemplo n.º 1
0
        public virtual void ReadFullyThenReadStringTest()
        {
            String data = "/Name1 15";
            RandomAccessSourceFactory factory = new RandomAccessSourceFactory();
            PdfTokenizer tok = new PdfTokenizer(new RandomAccessFileOrArray(factory.CreateSource(data.GetBytes(iText.IO.Util.EncodingUtil.ISO_8859_1
                                                                                                               ))));

            tok.ReadFully(new byte[7]);
            NUnit.Framework.Assert.AreEqual("15", tok.ReadString(data.Length));
        }