Is TarArchiveInputStream buffered or unbuffered inputstream?
问题 Is TarArchiveInputStream buffered or unbuffered inputstream ? InputStream inputStream = new TarArchiveInputStream(new GZIPInputStream(new BufferedInputStream(new FileInputStream(file)))); Does this object of inputStream store the whole entire file internally into the heap memory? Or is it just a pointer to a file and stores nothing into the memory? 回答1: Based on the source code of commons-compress.jar ver 1.4 , What happens when we create an instance of TarArchiveInputStream? Apart from other