Class CoffArchiveMemberHeader

    • Constructor Detail

      • CoffArchiveMemberHeader

        public CoffArchiveMemberHeader​(java.lang.String name,
                                       long date,
                                       java.lang.String userId,
                                       java.lang.String groupId,
                                       java.lang.String mode,
                                       long size,
                                       long payloadOffset,
                                       long memberOffset)
    • Method Detail

      • read

        public static CoffArchiveMemberHeader read​(BinaryReader reader,
                                                   LongNamesMember longNames)
        Reads a COFF archive member header from the specified reader, leaving the file position at the start of the this member's payload.

        The archive member's name is fixed up using the specified longNames object.

        reader - stream from which to read the COFF archive member header from
        longNames - optional, string table with long file names (only present in some COFF ar formats)
        a new CoffArchiveMemberHeader
      • getName

        public java.lang.String getName()
      • getDate

        public long getDate()
        Milliseconds since java Date epoch
      • getUserId

        public java.lang.String getUserId()
      • getGroupId

        public java.lang.String getGroupId()
      • getMode

        public java.lang.String getMode()
      • getSize

        public long getSize()
      • getPayloadOffset

        public long getPayloadOffset()
      • getFileOffset

        public long getFileOffset()
      • isCOFF

        public boolean isCOFF()
        Returns true if this header contains a COFF file.
        true if this header contains a COFF file
      • toDataType

        public DataType toDataType()
                            throws DuplicateNameException,
        Description copied from interface: StructConverter
        Returns a structure datatype representing the contents of the implementor of this interface.

        For example, given:

         class A {
             int foo;
             double bar;

        The return value should be a structure data type with two data type components; an INT and a DOUBLE. The structure should contain field names and, if possible, field comments.

        Specified by:
        toDataType in interface StructConverter
        returns a structure datatype representing the implementor of this interface
        DuplicateNameException - when a datatype of the same name already exists
        See Also: