protected void writeTile(ByteBuffer raster,int width,int height,String tilePath) throws IOException {
  byte[] bbArray=new byte[raster.limit()];
  raster.get(bbArray);
  writeTile(tilePath,bbArray,width,height,layerType);
}

protected void writeTile ( ByteBuffer raster , int width , int height , String tilePath ) throws IOException { byte [ ] bbArray = new byte [ raster . limit ( ) ] ; raster . get ( bbArray ) ; writeTile ( tilePath , bbArray , width , height , layerType ) ; }
write out a tile .
