/** * Returns true if the magic corresponds with the fileHeader magic. */ private boolean magicOk() { int magic = getMagic(); return magic >= Magic.BLOCK && magic <= ( Magic.BLOCK + Magic.FREEPHYSIDS_PAGE ); }
/** * Returns true if the magic corresponds with the fileHeader magic. */ private boolean magicOk() { int magic = getMagic(); return magic >= Magic.BLOCK && magic <= ( Magic.BLOCK + Magic.FREEPHYSIDS_PAGE ); }
/** * Returns true if the magic corresponds with the fileHeader magic. */ private boolean magicOk() { int magic = getMagic(); return magic >= Magic.BLOCK && magic <= (Magic.BLOCK + Magic.FREEPHYSIDS_PAGE); }
/** * Returns true if the magic corresponds with the fileHeader magic. */ private boolean magicOk() { int magic = getMagic(); return magic >= Magic.BLOCK && magic <= ( Magic.BLOCK + Magic.FREEPHYSIDS_PAGE ); }
/** * For paranoia mode */ protected void paranoiaMagicOk() { if (!magicOk()) throw new Error("CRITICAL: page header magic not OK " + getMagic()); }
/** * For paranoia mode */ protected void paranoiaMagicOk() { if ( !magicOk() ) { throw new Error( I18n.err( I18n.ERR_547, getMagic() ) ); } }
/** * For paranoia mode */ protected void paranoiaMagicOk() { if ( ! magicOk() ) { throw new Error( I18n.err( I18n.ERR_547, getMagic() ) ); } }
/** * For paranoia mode */ protected void paranoiaMagicOk() { if ( ! magicOk() ) { throw new Error( I18n.err( I18n.ERR_547, getMagic() ) ); } }
/** * Constructs a PageHeader object from a block * * @param block The block that contains the file header * @throws IOException if the block is too short to keep the file * header. */ protected PageHeader(BlockIo block) { initialize(block); if (!magicOk()) throw new Error("CRITICAL: page header magic for block " + block.getBlockId() + " not OK " + getMagic()); }
int magic = getMagic();
/** * Constructs a PageHeader object from a block * * @param block The block that contains the page header * @throws IOException if the block is too short to keep the page header. */ protected PageHeader( BlockIo block ) { this.block = block; block.setView( this ); if ( !magicOk() ) { throw new Error( I18n.err( I18n.ERR_546, block.getBlockId(), getMagic() ) ); } }
/** * Constructs a PageHeader object from a block * * @param block The block that contains the page header * @throws IOException if the block is too short to keep the page header. */ protected PageHeader( BlockIo block ) { this.block = block; block.setView( this ); if ( ! magicOk() ) { throw new Error( I18n.err( I18n.ERR_546, block.getBlockId(), getMagic() ) ); } }
/** * Constructs a PageHeader object from a block * * @param blockIo The block that contains the page header * @throws IOException if the block is too short to keep the page header. */ protected PageHeader( BlockIo blockIo ) { this.blockIo = blockIo; blockIo.setView( this ); if ( ! magicOk() ) { throw new Error( I18n.err( I18n.ERR_546, blockIo.getBlockId(), getMagic() ) ); } }