Skip to content

Commit 6ecc948

Browse files
committed
Javadocs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140378 13f79535-47bb-0310-9956-ffa450edef68
1 parent fdaa056 commit 6ecc948

2 files changed

Lines changed: 17 additions & 24 deletions

File tree

src/java/org/apache/commons/io/HexDump.java

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
2-
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/java/org/apache/commons/io/HexDump.java,v 1.1 2002/02/22 06:12:38 bayard Exp $
3-
* $Revision: 1.1 $
4-
* $Date: 2002/02/22 06:12:38 $
2+
* $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//io/src/java/org/apache/commons/io/HexDump.java,v 1.2 2003/07/27 17:20:59 jeremias Exp $
3+
* $Revision: 1.2 $
4+
* $Date: 2003/07/27 17:20:59 $
55
*
66
* ====================================================================
77
*
@@ -56,28 +56,22 @@
5656
* individuals on behalf of the Apache Software Foundation. For more
5757
* information on the Apache Software Foundation, please see
5858
* <http://www.apache.org/>.
59-
*
6059
*/
61-
62-
6360
package org.apache.commons.io;
6461

65-
6662
import java.io.IOException;
6763
import java.io.OutputStream;
6864

69-
7065
/**
71-
* dump data in hexadecimal format; derived from a HexDump utility I
66+
* Dump data in hexadecimal format; derived from a HexDump utility I
7267
* wrote in June 2001
7368
*
7469
* Taken from the POI project
7570
*
7671
* @author Scott Sanders (sanders at apache dot org)
7772
* @author Marc Johnson
78-
* @version $Revision: 1.1 $ $Date: 2002/02/22 06:12:38 $
73+
* @version $Revision: 1.2 $ $Date: 2003/07/27 17:20:59 $
7974
*/
80-
8175
public class HexDump {
8276

8377
// all static methods, so no need for a public constructor
@@ -146,6 +140,7 @@ public static void dump(final byte[] data, final long offset,
146140
}
147141
}
148142

143+
/** line-separator (initializes to "line.separator" system property. */
149144
public static final String EOL =
150145
System.getProperty("line.separator");
151146
private static final StringBuffer _lbuffer = new StringBuffer(8);

src/java/org/apache/commons/io/IOUtils.java

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,8 @@
111111
* (or three if the destination stream is also buffered) is pointless, and the unnecessary buffer
112112
* management hurts performance slightly (about 3%, according to some simple experiments).</p>
113113
*
114-
* <p>Origin of code: Apache Avalon (Excalibur)</p>
115-
*
116-
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
117-
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
118-
* @version CVS $Revision: 1.2 $ $Date: 2003/07/25 08:17:10 $
119-
*/
120-
121-
/*
122-
* Behold, intrepid explorers; a map of this class:
123-
*
114+
* <p>Behold, intrepid explorers; a map of this class:</p>
115+
* <pre>
124116
* Method Input Output Dependency
125117
* ------ ----- ------ -------
126118
* 1 copy InputStream OutputStream (primitive)
@@ -141,12 +133,18 @@
141133
* 12 copy byte[] Writer 3
142134
* 13 toString byte[] String 12
143135
* 14 copy byte[] OutputStream (trivial)
136+
* </pre>
144137
*
138+
* <p>Note that only the first two methods shuffle bytes; the rest use these
139+
* two, or (if possible) copy using native Java copy methods. As there are
140+
* method variants to specify buffer size and encoding, each row may
141+
* correspond to up to 4 methods.</p>
145142
*
146-
* Note that only the first two methods shuffle bytes; the rest use these two, or (if possible) copy
147-
* using native Java copy methods. As there are method variants to specify buffer size and encoding,
148-
* each row may correspond to up to 4 methods.
143+
* <p>Origin of code: Apache Avalon (Excalibur)</p>
149144
*
145+
* @author <a href="mailto:peter@apache.org">Peter Donald</a>
146+
* @author <a href="mailto:jefft@apache.org">Jeff Turner</a>
147+
* @version CVS $Revision: 1.3 $ $Date: 2003/07/27 17:21:27 $
150148
*/
151149
public final class IOUtils
152150
{

0 commit comments

Comments
 (0)