public static boolean shouldLoad(String id,ChunkLoadBehaviour behav){
  if (isCritical(id))   return true;
switch (behav) {
case LOAD_CHUNK_ALWAYS:
    return true;
case LOAD_CHUNK_IF_SAFE:
  return isSafeToCopy(id);
case LOAD_CHUNK_NEVER:
return false;
case LOAD_CHUNK_MOST_IMPORTANT:
return id.equals(PngChunkTRNS.ID);
}
return false;
}

public static boolean shouldLoad ( String id , ChunkLoadBehaviour behav ) { if ( isCritical ( id ) ) return true ; switch ( behav ) { case LOAD_CHUNK_ALWAYS : return true ; case LOAD_CHUNK_IF_SAFE : return isSafeToCopy ( id ) ; case LOAD_CHUNK_NEVER : return false ; case LOAD_CHUNK_MOST_IMPORTANT : return id . equals ( PngChunkTRNS . ID ) ; } return false ; }
decides if a chunk should be loaded , according to a chunkloadbehaviour
