ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53811] exception when using -Dfile.encoding=UTF-8
Date Sat, 01 Sep 2012 07:46:02 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53811

Abu Abdullah <falcon.sheep@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Abu Abdullah <falcon.sheep@gmail.com> ---
piece of code:

final TarOutputStream tarFile = new TarOutputStream(new
FileOutputStream(pathName));
tarFile.setLongFileMode(TarOutputStream.LONGFILE_GNU);

....

TarEntry tarEntry = new TarEntry(path);
tarEntry.setSize(new File(pre_path+path).length());
tarFile.putNextEntry(tarEntry);
in = new FileInputStream(convertPath(choosedAudioPath)+path);
while((len = in.read(buf)) > 0)
 tarFile.write(buf, 0, len);

tarFile.closeEntry();
in.close();

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message