Package com.itextpdf.text.io

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


        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

Related Classes of com.itextpdf.text.io.WindowRandomAccessSource

Copyright © 2018 www.massapicom. 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.