implement available in LocalFileInputStream