Package org.cakelab.blender.io
Class FileHeader
- java.lang.Object
-
- org.cakelab.blender.io.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileHeader.Endianess
static class
FileHeader.PointerSize
static class
FileHeader.Version
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
BLENDER_MAGIC
File identifier (always "BLENDER" (ASCII)).
-
Constructor Summary
Constructors Constructor Description FileHeader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteOrder
getByteOrder()
int
getPointerSize()
FileHeader.Version
getVersion()
Blender version, this file was created in.void
read(CDataReadWriteAccess in)
java.lang.String
toString()
void
write(CDataReadWriteAccess io)
-
-
-
Field Detail
-
BLENDER_MAGIC
public static final java.lang.String BLENDER_MAGIC
File identifier (always "BLENDER" (ASCII)).- See Also:
- Constant Field Values
-
-
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 classjava.lang.Object
-
getByteOrder
public java.nio.ByteOrder getByteOrder()
-
getPointerSize
public int getPointerSize()
-
getVersion
public FileHeader.Version getVersion()
Blender version, this file was created in.
-
-