public static final int PROPERTY_SIZE = 0x0080;
+ /**
+ * The minimum size of a document before it's stored using
+ * Big Blocks (normal streams). Smaller documents go in the
+ * Mini Stream (SBAT / Small Blocks)
+ */
+ public static final int BIG_BLOCK_MINIMUM_DOCUMENT_SIZE = 0x1000;
+
/** The highest sector number you're allowed, 0xFFFFFFFA */
public static final int LARGEST_REGULAR_SECTOR_NUMBER = -5;
* Updates the contents of the stream to the new
* set of bytes.
* Note - if this is property based, you'll still
- * need to
+ * need to update the size in the property yourself
*/
public void updateContents(byte[] contents) throws IOException {
// How many blocks are we going to need?
static final protected byte _NODE_RED = 0;
// documents must be at least this size to be stored in big blocks
- static final private int _big_block_minimum_bytes = 4096;
+ static final private int _big_block_minimum_bytes = POIFSConstants.BIG_BLOCK_MINIMUM_DOCUMENT_SIZE;
private String _name;
private ShortField _name_size;
private ByteField _property_type;