Class FileHeader


  • public class FileHeader
    extends java.lang.Object
    The first 12 bytes of every blend-file is the file-header. The file-header has information on Blender (version-number) and the PC the blend-file was saved on (pointer-size and endianness). This is required as all data inside the blend-file is ordered in that way, because no translation or transformation is done during saving.
    • Field Detail

      • BLENDER_MAGIC

        public static final java.lang.String BLENDER_MAGIC
        File identifier (always "BLENDER" (ASCII)).
        See Also:
        Constant Field Values
    • Constructor Detail

      • FileHeader

        public FileHeader()
    • Method Detail

      • read

        public void read​(CDataReadWriteAccess in)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public void write​(CDataReadWriteAccess io)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getByteOrder

        public java.nio.ByteOrder getByteOrder()
      • getPointerSize

        public int getPointerSize()
      • getVersion

        public FileHeader.Version getVersion()
        Blender version, this file was created in.