@@ -0,0 +1,1787 @@
+/*%0A * Copyright (C) 2010 TranceCode Software%0A *%0A * This library is free software; you can redistribute it and/or modify it under%0A * the terms of the GNU Lesser General Public License as published by the Free%0A * Software Foundation; either version 2.1 of the License, or (at your option)%0A * any later version.%0A * %0A * This library is distributed in the hope that it will be useful, but WITHOUT%0A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS%0A * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more%0A * details.%0A * %0A * You should have received a copy of the GNU Lesser General Public License%0A * along with this library; if not, write to the Free Software Foundation, Inc.,%0A * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA %0A */%0Apackage org.trancecode.io;%0A%0Aimport com.google.common.io.ByteStreams;%0Aimport com.google.common.io.Closeables;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0A/**%0A * Utility methods related to %7B@link InputStream%7D and %7B@link OutputStream%7D.%0A * %0A * @author Herve Quiroz%0A */%0Apublic final class TcByteStreams%0A%7B%0A    public static long copy(final InputStream in, final OutputStream out, final boolean close)%0A    %7B%0A        try%0A        %7B%0A            final long bytes = ByteStreams.copy(in, out);%0A            Closeables.close(in, false);%0A            Closeables.close(out, false);%0A            return bytes;%0A        %7D%0A        catch (final IOException e)%0A        %7B%0A            throw new RuntimeIOException(e);%0A        %7D%0A        finally%0A        %7B%0A            if (close)%0A            %7B%0A                Closeables.closeQuietly(in);%0A                Closeables.closeQuietly(out);%0A            %7D%0A        %7D%0A    %7D%0A%0A    private TcByteStreams()%0A    %7B%0A        // No instantiation%0A    %7D%0A%7D%0A

Add TcByteStreams.copy()