if(!(ftc instanceof SupportsPartialRead)){
throw new Exception("Byte range is defined but protocol does not allow " +
"partial read! Please choose a different protocol!");
}
System.out.println("Byte range: "+startByte+" - "+(getRangeSize()>0?endByte:""));
SupportsPartialRead pReader=(SupportsPartialRead)ftc;
pReader.readPartial(startByte, endByte-startByte+1, os);
}
else{
ftc.readAllData(os);
}
// if(p!=null){