long amount = end - filepos;
long amount = end - (bufferOffset + pos);
    public int available()    {			long amount = end - filepos;			if (amount > Integer.MAX_VALUE)				return Integer.MAX_VALUE;			return (int) amount;		}