/** * @param column * @param row * @param buffer * @return a newly allocated buffer if the given one was <code>null</code> * @throws IOException */ public ByteBuffer getTileData( int column, int row, ByteBuffer buffer ) throws IOException { if ( buffer == null ) { buffer = allocateTileBuffer( false, false ); } read( column, row, buffer ); return buffer; }