Examples of WindowRandomAccessSource


Examples of com.itextpdf.text.io.WindowRandomAccessSource

     */
    private static PRTokeniser getOffsetTokeniser(RandomAccessSource byteSource) throws IOException{
      PRTokeniser tok = new PRTokeniser(new RandomAccessFileOrArray(byteSource));
      int offset = tok.getHeaderOffset();
      if (offset != 0){
        RandomAccessSource offsetSource = new WindowRandomAccessSource(byteSource, offset);
        tok = new PRTokeniser(new RandomAccessFileOrArray(offsetSource));
      }
      return tok;
    }
View Full Code Here

Examples of com.itextpdf.text.io.WindowRandomAccessSource

        field = getTranslatedFieldName(field);
        if (!sigNames.containsKey(field))
            return null;
        int length = sigNames.get(field)[0];
        RandomAccessFileOrArray raf = reader.getSafeFile();
        return new RASInputStream(new WindowRandomAccessSource(raf.createSourceView(), 0, length));
    }
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.