ostream.writeLong(created); ostream.writeLong(lastModified); ostream.writeUTF(mimeType); ostream.writeInt(pageCount);
metadata.write(ostream);
	public void write(VariableByteOutputStream ostream) throws IOException {		ostream.writeInt(docId);		ostream.writeUTF(fileName);		ostream.writeLong(pageNr);		SecurityManager secman = broker.getBrokerPool().getSecurityManager();		if (secman == null) {			ostream.writeInt(1);			ostream.writeInt(1);		} else {			User user = secman.getUser(permissions.getOwner());			Group group = secman.getGroup(permissions.getOwnerGroup());			ostream.writeInt(user.getUID());			ostream.writeInt(group.getId());		}		ostream.writeByte((byte) permissions.getPermissions());        ostream.writeLong(created);        ostream.writeLong(lastModified);        ostream.writeUTF(mimeType);        ostream.writeInt(pageCount);	}