Skip to content

Commit 0414381

Browse files
committed
Sort members.
1 parent 456f72a commit 0414381

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

src/main/java/org/apache/commons/io/input/BrokenReader.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public class BrokenReader extends Reader {
3636
*/
3737
private final IOException exception;
3838

39+
/**
40+
* Creates a new reader that always throws an {@link IOException}
41+
*/
42+
public BrokenReader() {
43+
this(new IOException("Broken reader"));
44+
}
45+
3946
/**
4047
* Creates a new reader that always throws the given exception.
4148
*
@@ -45,58 +52,49 @@ public BrokenReader(final IOException exception) {
4552
this.exception = exception;
4653
}
4754

48-
/**
49-
* Creates a new reader that always throws an {@link IOException}
50-
*/
51-
public BrokenReader() {
52-
this(new IOException("Broken reader"));
53-
}
54-
5555
/**
5656
* Throws the configured exception.
5757
*
58-
* @param cbuf ignored
59-
* @param off ignored
60-
* @param len ignored
61-
* @return nothing
6258
* @throws IOException always thrown
6359
*/
6460
@Override
65-
public int read(final char[] cbuf, final int off, final int len) throws IOException {
61+
public void close() throws IOException {
6662
throw exception;
6763
}
6864

6965
/**
7066
* Throws the configured exception.
7167
*
72-
* @param n ignored
73-
* @return nothing
68+
* @param readAheadLimit ignored
7469
* @throws IOException always thrown
7570
*/
7671
@Override
77-
public long skip(final long n) throws IOException {
72+
public void mark(final int readAheadLimit) throws IOException {
7873
throw exception;
7974
}
8075

8176
/**
8277
* Throws the configured exception.
8378
*
79+
* @param cbuf ignored
80+
* @param off ignored
81+
* @param len ignored
8482
* @return nothing
8583
* @throws IOException always thrown
8684
*/
8785
@Override
88-
public boolean ready() throws IOException {
86+
public int read(final char[] cbuf, final int off, final int len) throws IOException {
8987
throw exception;
9088
}
9189

9290
/**
9391
* Throws the configured exception.
9492
*
95-
* @param readAheadLimit ignored
93+
* @return nothing
9694
* @throws IOException always thrown
9795
*/
9896
@Override
99-
public void mark(final int readAheadLimit) throws IOException {
97+
public boolean ready() throws IOException {
10098
throw exception;
10199
}
102100

@@ -113,10 +111,12 @@ public synchronized void reset() throws IOException {
113111
/**
114112
* Throws the configured exception.
115113
*
114+
* @param n ignored
115+
* @return nothing
116116
* @throws IOException always thrown
117117
*/
118118
@Override
119-
public void close() throws IOException {
119+
public long skip(final long n) throws IOException {
120120
throw exception;
121121
}
122122

0 commit comments

Comments
 (0)