Added getSize function to inputstream, offset check when seek/skip