Package nz.govt.natlib.fx

Examples of nz.govt.natlib.fx.CompoundElement


  // File position offset to the NFib
  private static final int Offset_To_NFib = 0x2;

  public static void getHeader(DataSource ftk, ParserContext ctx)
      throws java.io.IOException {
    Element wordHeader = new CompoundElement(new String[] { "MagicNumber",
        "FIBNumber", "ProductVersion" }, new Element[] {
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT), });

    wordHeader.read(ftk, ctx);
  }
View Full Code Here


  public static void getDOPProperties(DataSource ftk, int iDopFP,
      ParserContext ctx) throws java.io.IOException {
    // Set to the Dop + offset to start of relevant information
    ftk.setPosition((iDopFP + 0x14));
    Element DocumentProperties = new CompoundElement(new String[] {
        "created", "revision", "printed", "revisioncount",
        "timeediting", "pages", "words", "characters" }, new Element[] {
        new DTTM(),
        new DTTM(),
        new DTTM(),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT), });
    DocumentProperties.read(ftk, ctx);
  }
View Full Code Here

  // File position offset to the NFib
  private static final int Offset_To_NFib = 0x2;

  public static void getHeader(DataSource ftk, ParserContext ctx)
      throws java.io.IOException {
    Element wordHeader = new CompoundElement(new String[] { "MagicNumber",
        "FIBNumber", "ProductVersion" }, new Element[] {
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT), });

    wordHeader.read(ftk, ctx);
  }
View Full Code Here

  public static void getDOPProperties(DataSource ftk, int iDopFP,
      ParserContext ctx) throws java.io.IOException {
    // Set to the Dop + offset to start of relevant information
    ftk.setPosition((iDopFP + 0x14));
    Element DocumentProperties = new CompoundElement(new String[] {
        "created", "revision", "printed", "revisioncount",
        "timeediting", "pages", "words", "characters" }, new Element[] {
        new DTTM(),
        new DTTM(),
        new DTTM(),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT), });
    DocumentProperties.read(ftk, ctx);
  }
View Full Code Here

  // File position offset to the NFib
  private static final int Offset_To_NFib = 0x2;

  public static void getHeader(DataSource ftk, ParserContext ctx)
      throws java.io.IOException {
    Element wordHeader = new CompoundElement(new String[] { "MagicNumber",
        "FIBNumber", "ProductVersion" }, new Element[] {
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.HEX_FORMAT), });

    wordHeader.read(ftk, ctx);
  }
View Full Code Here

  public static void getDOPProperties(DataSource ftk, int iDopFP,
      ParserContext ctx) throws java.io.IOException {
    // Set to the Dop + offset to start of relevant information
    ftk.setPosition((iDopFP + 0x14));
    Element DocumentProperties = new CompoundElement(new String[] {
        "created", "revision", "printed", "revisioncount",
        "timeediting", "pages", "words", "characters" }, new Element[] {
        new DTTM(),
        new DTTM(),
        new DTTM(),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.INT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT),
        new IntegerElement(IntegerElement.SHORT_SIZE, false,
            IntegerElement.DECIMAL_FORMAT), });
    DocumentProperties.read(ftk, ctx);
  }
View Full Code Here

TOP

Related Classes of nz.govt.natlib.fx.CompoundElement

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.