![]() "request to write 1024 bytes exceeds size in header of 0 bytes" While((count = fis.read(buf,0,buffersize)) != -1) TarEntry te = new TarEntry(f2.getPath()) BufferedInputStream bis = new BufferedInputStream(fis,buffersize) Public static void tartar(String dir,TarOutputStream tos) throws IOExceptionįileInputStream fis = new FileInputStream(f2) TarOutputStream tos = new TarOutputStream(new FileOutputStream(tarFile)) Public static void main(String args) throws Exceptionįile tarFile = new File("c:\\aa\\tartest.tar") ![]() ![]() This Example should tar only directory recusively. I write a tar program under java but it did not work, can someone give a hint.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |