Skip to content

Commit 26cc97a

Browse files
committed
Javadocs
1 parent 45bfbf8 commit 26cc97a

File tree

3 files changed

+22
-6
lines changed

3 files changed

+22
-6
lines changed

src/main/java/com/konloch/disklib/DiskWriter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public static void append(File file, boolean appendNewLine) throws IOException
7373
* If the file doesn't exist it will automatically create it.
7474
*
7575
* @param file any valid file path to open
76+
* @param line String to write
7677
* @throws IOException if an I/O error occurs
7778
*/
7879
public static void append(String file, String line) throws IOException
@@ -85,6 +86,7 @@ public static void append(String file, String line) throws IOException
8586
* If the file doesn't exist it will automatically create it.
8687
*
8788
* @param file any valid file path to open
89+
* @param line String to write
8890
* @throws IOException if an I/O error occurs
8991
*/
9092
public static void append(File file, String line) throws IOException
@@ -97,6 +99,7 @@ public static void append(File file, String line) throws IOException
9799
* If the file doesn't exist it will automatically create it.
98100
*
99101
* @param file any valid file path to open
102+
* @param line String to write
100103
* @param appendNewLine true to append a new line
101104
* @throws IOException if an I/O error occurs
102105
*/
@@ -110,6 +113,7 @@ public static void append(String file, String line, boolean appendNewLine) throw
110113
* If the file doesn't exist it will automatically create it.
111114
*
112115
* @param file any valid file path to open
116+
* @param line String to write
113117
* @param appendNewLine true to append a new line
114118
* @throws IOException if an I/O error occurs
115119
*/
@@ -232,6 +236,7 @@ public static void write(File file, boolean appendNewLine) throws IOException
232236
* If the file doesn't exist it will automatically create it.
233237
*
234238
* @param file any valid file path to open
239+
* @param line String to write
235240
* @throws IOException if an I/O error occurs
236241
*/
237242
public static void write(String file, String line) throws IOException
@@ -244,6 +249,7 @@ public static void write(String file, String line) throws IOException
244249
* If the file doesn't exist it will automatically create it.
245250
*
246251
* @param file any valid file path to open
252+
* @param line String to write
247253
* @throws IOException if an I/O error occurs
248254
*/
249255
public static void write(File file, String line) throws IOException
@@ -256,6 +262,7 @@ public static void write(File file, String line) throws IOException
256262
* If the file doesn't exist it will automatically create it.
257263
*
258264
* @param file any valid file path to open
265+
* @param line String to write
259266
* @param appendNewLine true to append a new line
260267
* @throws IOException if an I/O error occurs
261268
*/
@@ -269,6 +276,7 @@ public static void write(String file, String line, boolean appendNewLine) throws
269276
* If the file doesn't exist it will automatically create it.
270277
*
271278
* @param file any valid file path to open
279+
* @param line String to write
272280
* @param appendNewLine true to append a new line
273281
* @throws IOException if an I/O error occurs
274282
*/

src/main/java/com/konloch/disklib/GZipDiskReader.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class GZipDiskReader
2323
* @param file any valid file path to open
2424
* @return String Array with the file content lines
2525
* @throws IOException if an I/O error occurs reading from the stream
26-
* @throws DataFormatException
26+
* @throws DataFormatException if the compressed data format is invalid
2727
*/
2828
public static String[] readLines(String file) throws IOException, DataFormatException
2929
{
@@ -36,7 +36,7 @@ public static String[] readLines(String file) throws IOException, DataFormatExce
3636
* @param file the file object to open
3737
* @return String Array with the file content lines
3838
* @throws IOException if an I/O error occurs reading from the stream
39-
* @throws DataFormatException
39+
* @throws DataFormatException if the compressed data format is invalid
4040
*/
4141
public static String[] readLines(File file) throws IOException, DataFormatException
4242
{
@@ -49,7 +49,7 @@ public static String[] readLines(File file) throws IOException, DataFormatExcept
4949
* @param file any valid file path to open
5050
* @return byte Array with the file content lines
5151
* @throws IOException if an I/O error occurs reading from the stream
52-
* @throws DataFormatException
52+
* @throws DataFormatException if the compressed data format is invalid
5353
*/
5454
public static byte[] readBytes(String file) throws IOException, DataFormatException
5555
{
@@ -62,7 +62,7 @@ public static byte[] readBytes(String file) throws IOException, DataFormatExcept
6262
* @param file the file object to open
6363
* @return byte Array with the file content lines
6464
* @throws IOException if an I/O error occurs reading from the stream
65-
* @throws DataFormatException
65+
* @throws DataFormatException if the compressed data format is invalid
6666
*/
6767
public static byte[] readBytes(File file) throws IOException, DataFormatException
6868
{
@@ -75,7 +75,7 @@ public static byte[] readBytes(File file) throws IOException, DataFormatExceptio
7575
* @param file any valid file path to open
7676
* @return String ArrayList with the file content lines
7777
* @throws IOException if an I/O error occurs reading from the stream
78-
* @throws DataFormatException
78+
* @throws DataFormatException if the compressed data format is invalid
7979
*/
8080
public static ArrayList<String> read(String file) throws IOException, DataFormatException
8181
{
@@ -88,7 +88,7 @@ public static ArrayList<String> read(String file) throws IOException, DataFormat
8888
* @param file the file object to open
8989
* @return String ArrayList with the file content lines
9090
* @throws IOException if an I/O error occurs reading from the stream
91-
* @throws DataFormatException
91+
* @throws DataFormatException if the compressed data format is invalid
9292
*/
9393
public static ArrayList<String> read(File file) throws IOException, DataFormatException
9494
{

src/main/java/com/konloch/disklib/GZipDiskWriter.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public static void append(File file, boolean appendNewLine) throws IOException
7373
* If the file doesn't exist it will automatically create it.
7474
*
7575
* @param file any valid file path to open
76+
* @param line String to write
7677
* @throws IOException if an I/O error occurs
7778
*/
7879
public static void append(String file, String line) throws IOException
@@ -85,6 +86,7 @@ public static void append(String file, String line) throws IOException
8586
* If the file doesn't exist it will automatically create it.
8687
*
8788
* @param file any valid file path to open
89+
* @param line String to write
8890
* @throws IOException if an I/O error occurs
8991
*/
9092
public static void append(File file, String line) throws IOException
@@ -97,6 +99,7 @@ public static void append(File file, String line) throws IOException
9799
* If the file doesn't exist it will automatically create it.
98100
*
99101
* @param file any valid file path to open
102+
* @param line String to write
100103
* @param appendNewLine true to append a new line
101104
* @throws IOException if an I/O error occurs
102105
*/
@@ -110,6 +113,7 @@ public static void append(String file, String line, boolean appendNewLine) throw
110113
* If the file doesn't exist it will automatically create it.
111114
*
112115
* @param file any valid file path to open
116+
* @param line String to write
113117
* @param appendNewLine true to append a new line
114118
* @throws IOException if an I/O error occurs
115119
*/
@@ -232,6 +236,7 @@ public static void write(File file, boolean appendNewLine) throws IOException
232236
* If the file doesn't exist it will automatically create it.
233237
*
234238
* @param file any valid file path to open
239+
* @param line String to write
235240
* @throws IOException if an I/O error occurs
236241
*/
237242
public static void write(String file, String line) throws IOException
@@ -244,6 +249,7 @@ public static void write(String file, String line) throws IOException
244249
* If the file doesn't exist it will automatically create it.
245250
*
246251
* @param file any valid file path to open
252+
* @param line String to write
247253
* @throws IOException if an I/O error occurs
248254
*/
249255
public static void write(File file, String line) throws IOException
@@ -256,6 +262,7 @@ public static void write(File file, String line) throws IOException
256262
* If the file doesn't exist it will automatically create it.
257263
*
258264
* @param file any valid file path to open
265+
* @param line String to write
259266
* @param appendNewLine true to append a new line
260267
* @throws IOException if an I/O error occurs
261268
*/
@@ -269,6 +276,7 @@ public static void write(String file, String line, boolean appendNewLine) throws
269276
* If the file doesn't exist it will automatically create it.
270277
*
271278
* @param file any valid file path to open
279+
* @param line String to write
272280
* @param appendNewLine true to append a new line
273281
* @throws IOException if an I/O error occurs
274282
*/

0 commit comments

Comments
 (0)