[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [GitHub] [commons-compress] bodewig commented on issue #87: COMPRESS-124 : Add support for extractin
From:       GitBox <git () apache ! org>
Date:       2019-11-30 19:47:56
Message-ID: 157514327633.8226.3159919542008093320.gitbox () gitbox ! apache ! org
[Download RAW message or body]

bodewig commented on issue #87: COMPRESS-124 : Add support for extracting sparse \
                entries from tar archives
URL: https://github.com/apache/commons-compress/pull/87#issuecomment-560015609
 
 
   First of all, many thanks @PeterAlfreadLee 
   
   I agree with @tcurdt that providing the functionality via a single \
`TarArchiveInputStream` would be preferable. Maybe we could extract the meet of the \
read and skip methods into strategy implementations and make the handling of sparse \
entries another strategy that is triggered when reading said type of entry? That way \
we could extend the class without making it even more complex itself.  
   Here I'm just thinking loud, I haven't got any code to show or even just tried to \
sketch it up. I must admit I haven't even looked at the code in detail, so maybe the \
idea is complete nonsense.  
   BTW, star is a pretty old tar implementation by Jörg Schilling that used to be \
pretty popular before POSIX started to add support for many of the shortcoming that \
GNU tar addressed in its own way - long file names, big files, non-ASCII file names \
and all that. It is still available via Sourceforge, I found the manual page at \
http://schilytools.sourceforge.net/man/man1/star.1.html . IIRC it is BSD licensed so \
was preferred over GNU tar by the BSDs and some other Unices.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic