created = istream.readLong(); lastModified = istream.readLong(); mimeType = istream.readUTF(); pageCount = istream.readInt();
metadata = new DocumentMetadata(); metadata.read(istream);
	public void read(VariableByteInput istream)		throws IOException, EOFException {		docId = istream.readInt();		fileName = istream.readUTF();		pageNr = istream.readLong();		final SecurityManager secman =			broker.getBrokerPool().getSecurityManager();		final int uid = istream.readInt();		final int groupId = istream.readInt();		final int perm = (istream.readByte() & 0777);		if (secman == null) {			permissions.setOwner(SecurityManager.DBA_USER);			permissions.setGroup(SecurityManager.DBA_GROUP);		} else {			permissions.setOwner(secman.getUser(uid));            Group group = secman.getGroup(groupId);            if (group != null)                permissions.setGroup(group.getName());		}		permissions.setPermissions(perm);        created = istream.readLong();        lastModified = istream.readLong();        mimeType = istream.readUTF();        pageCount = istream.readInt();	}