Extended BinaryFile wrapper class to conform file-object interface