Package org.apache.poi.hwpf.model

Examples of org.apache.poi.hwpf.model.FieldsTables


    _endnotesTables = new NotesTables( NoteType.ENDNOTE, _tableStream, _fib );
    _endnotes = new NotesImpl( _endnotesTables );
    _footnotesTables = new NotesTables( NoteType.FOOTNOTE, _tableStream, _fib );
    _footnotes = new NotesImpl( _footnotesTables );

    _fieldsTables = new FieldsTables(_tableStream, _fib);
    _fields = new FieldsImpl(_fieldsTables);
  }
View Full Code Here


    if (rmarkOffset != 0 && rmarkLength != 0)
    {
      _rmat = new RevisionMarkAuthorTable(_tableStream, rmarkOffset, rmarkLength);
    }
   
    _fieldsTables = new FieldsTables(_tableStream, _fib);
  }
View Full Code Here

    public void testReadFields()
    {
        FileInformationBlock fib = _hWPFDocFixture._fib;
        byte[] tableStream = _hWPFDocFixture._tableStream;

        FieldsTables fieldsTables = new FieldsTables( tableStream, fib );

        for ( int i = 0; i < FieldsDocumentPart.values().length; i++ )
        {
            FieldsDocumentPart part = FieldsDocumentPart.values()[i];

            ArrayList<PlexOfField> fieldsPlexes = fieldsTables
                    .getFieldsPLCF( part );
            String result = dumpPlexes( fieldsPlexes );
            assertEquals( EXPECTED[i], result );
        }
    }
View Full Code Here

  public void testReadFields()
  {
    FileInformationBlock fib = _hWPFDocFixture._fib;
    byte[] tableStream = _hWPFDocFixture._tableStream;
   
    FieldsTables fieldsTables = new FieldsTables(tableStream, fib);
   
    for (int i = 0; i < ALL_TYPES.length; i++)
    {
      ArrayList<PlexOfField> fieldsPlexes = fieldsTables.getFieldsPLCF( ALL_TYPES[i] );
      String result = dumpPlexes(fieldsPlexes);
      assertEquals(EXPECTED[i], result);
    }
  }
View Full Code Here

    _endnotesTables = new NotesTables( NoteType.ENDNOTE, _tableStream, _fib );
    _endnotes = new NotesImpl( _endnotesTables );
    _footnotesTables = new NotesTables( NoteType.FOOTNOTE, _tableStream, _fib );
    _footnotes = new NotesImpl( _footnotesTables );

    _fieldsTables = new FieldsTables(_tableStream, _fib);
    _fields = new FieldsImpl(_fieldsTables);
  }
View Full Code Here

    _endnotesTables = new NotesTables( NoteType.ENDNOTE, _tableStream, _fib );
    _endnotes = new NotesImpl( _endnotesTables );
    _footnotesTables = new NotesTables( NoteType.FOOTNOTE, _tableStream, _fib );
    _footnotes = new NotesImpl( _footnotesTables );

    _fieldsTables = new FieldsTables(_tableStream, _fib);
    _fields = new FieldsImpl(_fieldsTables);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hwpf.model.FieldsTables

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.