If I try to use tar files, I'll have error with it on my system. Because the tar parser doesn't parse correctly.
When I use terminal:
> tar --version
tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
The parser thinks the version is (GNU.
I can create my own classes based on your such like AdapterContainer, GNUTarVersionProbe, TarGNUTarAdapter, GNUTarOutputParser, and so on. But it looks like hard and non-flexible way. Because different OS and versions of an archivers are required different parsers for each and every, so this situation is required some easy way to change parser.
So, how can I change each parser easily? For example, by one method or by changing one file (AdapterContainer?)?
If I try to use tar files, I'll have error with it on my system. Because the tar parser doesn't parse correctly.
When I use terminal:
The parser thinks the version is (GNU.
I can create my own classes based on your such like AdapterContainer, GNUTarVersionProbe, TarGNUTarAdapter, GNUTarOutputParser, and so on. But it looks like hard and non-flexible way. Because different OS and versions of an archivers are required different parsers for each and every, so this situation is required some easy way to change parser.
So, how can I change each parser easily? For example, by one method or by changing one file (AdapterContainer?)?