Skip to content

Commit 74bc86c

Browse files
committed
Fix javadoc build errors
1 parent edbe8c3 commit 74bc86c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+90
-155
lines changed

src/main/java/org/archive/format/gzip/zipnum/MultiBlockIterator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class MultiBlockIterator extends AbstractPeekableIterator<String> {
1818
private CloseableIterator<CloseableIterator<String>> blockItr = null;
1919

2020
/**
21-
* @param blocks which should be fetched and unzipped, one after another
21+
* @param blockItr blocks which should be fetched and unzipped, one after another
2222
*/
2323
public MultiBlockIterator(CloseableIterator<CloseableIterator<String>> blockItr) {
2424
this.blockItr = blockItr;

src/main/java/org/archive/format/text/charset/CharsetDetector.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ protected String contentTypeToCharset(final String contentType) {
139139
* Attempt to divine the character encoding of the document from the
140140
* Content-Type HTTP header (with a "charset=")
141141
*
142-
* @param resource
143142
* @return String character set found or null if the header was not present
144143
* @throws IOException
145144
*/
@@ -161,7 +160,6 @@ protected String getCharsetFromHeaders(HttpHeaders headers)
161160
* Attempt to find a META tag in the HTML that hints at the character set
162161
* used to write the document.
163162
*
164-
* @param resource
165163
* @return String character set found from META tags in the HTML
166164
* @throws IOException
167165
*/
@@ -224,9 +222,7 @@ public static String findMetaContentType(String pageSample) {
224222
* Attempts to figure out the character set of the document using
225223
* the excellent juniversalchardet library.
226224
*
227-
* @param resource
228225
* @return String character encoding found, or null if nothing looked good.
229-
* @throws IOException
230226
*/
231227
protected String getCharsetFromBytes(byte buffer[], int len)
232228
throws IOException {
@@ -242,9 +238,6 @@ protected String getCharsetFromBytes(byte buffer[], int len)
242238
return null;
243239
}
244240
/**
245-
* @param resource (presumably text) Resource to determine the charset
246-
* @param request WaybackRequest which may contain additional hints to
247-
* processing
248241
* @return String charset name for the Resource
249242
* @throws IOException if there are problems reading the Resource
250243
*/

src/main/java/org/archive/format/warc/WARCConstants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/**
2525
* WARC Constants used by WARC readers and writers.
2626
*
27-
* @contributor stack
27+
* @author stack
2828
*/
2929
public interface WARCConstants extends ArchiveFileConstants {
3030
/**
@@ -175,8 +175,8 @@ enum WARCRecordType {
175175
/**
176176
* These fields help a consumer of the warc to locate the warc record that
177177
* {@value #HEADER_KEY_REFERS_TO} refers to.
178-
*
179-
* @see WARCWriterProcessor
178+
* <p>
179+
* See WARCWriterProcessor
180180
*/
181181
public static final String HEADER_KEY_REFERS_TO_TARGET_URI = "WARC-Refers-To-Target-URI";
182182
public static final String HEADER_KEY_REFERS_TO_DATE = "WARC-Refers-To-Date";

src/main/java/org/archive/httpclient/package.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
apache <a href="http://jakarta.apache.org/commons/httpclient/">jakarta
88
commons httpclient</a>.
99

10-
<h3>HttpRecorderGetMethod</h3>
10+
<h2>HttpRecorderGetMethod</h2>
1111
<p>Class that the passed HttpRecorder w/ boundary between
1212
HTTP header and content. Also forces a close on the response on
1313
call to releaseConnection.</p>
1414

15-
<h3>ConfigurableTrustManagerProtocolSocketFactory</h3>
15+
<h2>ConfigurableTrustManagerProtocolSocketFactory</h2>
1616
<p>A protocol socket factory that allows setting of trust level on
1717
construction.</p>
1818

19-
<h3>References</h3>
19+
<h2>References</h2>
2020
<p><a
2121
href="http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html">JavaTM Secure Socket Extension (JSSE): Reference Guide</a></p>
2222

src/main/java/org/archive/io/ArchiveReader.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -711,9 +711,7 @@ public boolean outputRecord(final String format)
711711

712712
/**
713713
* Dump this file on STDOUT
714-
* @throws compress True if dumped output is compressed.
715-
* @throws IOException
716-
* @throws java.text.ParseException
714+
* @param compress True if dumped output is compressed.
717715
*/
718716
public abstract void dump(final boolean compress)
719717
throws IOException, java.text.ParseException;

src/main/java/org/archive/io/GenericReplayCharSequence.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@
4545

4646
/**
4747
* (Replay)CharSequence view on recorded streams.
48+
**
49+
* <p>Call {@link #close()} on this class when done to clean up resources.
4850
*
49-
* For small streams, use {@link InMemoryReplayCharSequence}.
50-
*
51-
* <p>Call {@link close()} on this class when done to clean up resources.
52-
*
53-
* @contributor stack
54-
* @contributor nlevitt
51+
* @author stack
52+
* @author nlevitt
5553
* @version $Revision$, $Date$
5654
*/
5755
public class GenericReplayCharSequence implements ReplayCharSequence {
@@ -67,7 +65,7 @@ public class GenericReplayCharSequence implements ReplayCharSequence {
6765
* decodings. The name of the file that holds the decoding is the name
6866
* of the backing file w/ this encoding for a suffix.
6967
*
70-
* <p>See <a ref="http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html">Encoding</a>.
68+
* <p>See <a href="http://java.sun.com/j2se/1.4.2/docs/guide/intl/encoding.doc.html">Encoding</a>.
7169
*/
7270
public static final Charset WRITE_ENCODING = Charsets.UTF_16BE;
7371

src/main/java/org/archive/io/MiserOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* A filter stream that both counts bytes written, and optionally swallows
2828
* flush() requests.
2929
*
30-
* @contributor gojomo
30+
* @author gojomo
3131
*/
3232
public class MiserOutputStream extends FilterOutputStream {
3333
protected long count;

src/main/java/org/archive/io/Preformatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
* Interface indicating a logging Formatter can preformat a record (outside
2525
* the standard-implementation synchronized block) and cache it, returning it
2626
* for the next request for formatting from the same thread.
27-
* @contributor gojomo
27+
* @author gojomo
2828
*/
2929
public interface Preformatter {
3030
public void preformat(LogRecord record);

src/main/java/org/archive/io/RecordingInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public void readToEndOfContent(long contentLength)
225225

226226
/**
227227
* Read all of a stream (Or read until we timeout or have read to the max).
228-
* @param softMaxLength Maximum length to read; if zero or < 0, then no
228+
* @param softMaxLength Maximum length to read; if zero or &lt; 0, then no
229229
* limit. If met, return normally.
230230
* @throws IOException failed read.
231231
* @throws RecorderLengthExceededException

src/main/java/org/archive/io/ReplayInputStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class ReplayInputStream extends SeekInputStream
6464
* @param size Size of data to replay.
6565
* @param responseBodyStart Start of the response body.
6666
* @param backingFilename Backing file that sits behind the buffer. If
67-
* <code>size<code> > than buffer then we go to backing file to read
67+
* <code>size</code> &gt; than buffer then we go to backing file to read
6868
* data that is beyond buffer.length.
6969
*
7070
* @throws IOException If we fail to open an input stream on
@@ -84,7 +84,7 @@ public ReplayInputStream(byte[] buffer, long size, long responseBodyStart,
8484
* @param buffer Buffer to read from.
8585
* @param size Size of data to replay.
8686
* @param backingFilename Backing file that sits behind the buffer. If
87-
* <code>size<code> > than buffer then we go to backing file to read
87+
* <code>size</code> &gt; than buffer then we go to backing file to read
8888
* data that is beyond buffer.length.
8989
* @throws IOException If we fail to open an input stream on
9090
* backing file.
@@ -130,7 +130,7 @@ public ReplayInputStream(InputStream fillStream) throws IOException {
130130
}
131131

132132
/**
133-
* Close & destroy any internally-generated temporary files.
133+
* Close &amp; destroy any internally-generated temporary files.
134134
*/
135135
public void destroy() {
136136
IOUtils.closeQuietly(this);

0 commit comments

Comments
 (0)