Skip to content

Commit 7eab804

Browse files
author
Niall Pemberton
committed
Remove unused import of UnsupportedEncodingException and modify javadoc references to that class to use fully qualified name.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@462772 13f79535-47bb-0310-9956-ffa450edef68
1 parent ee763fa commit 7eab804

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
import java.io.IOException;
2525
import java.io.InputStream;
2626
import java.io.OutputStream;
27-
import java.io.UnsupportedEncodingException;
2827
import java.net.URL;
2928
import java.util.Collection;
3029
import java.util.Date;
@@ -871,7 +870,7 @@ public static boolean waitFor(File file, int seconds) {
871870
* @param encoding the encoding to use, null means platform default
872871
* @return the file contents or null if read failed
873872
* @throws IOException in case of an I/O error
874-
* @throws UnsupportedEncodingException if the encoding is not supported by the VM
873+
* @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
875874
*/
876875
public static String readFileToString(
877876
File file, String encoding) throws IOException {
@@ -915,7 +914,7 @@ public static byte[] readFileToByteArray(File file) throws IOException {
915914
* @param encoding the encoding to use, null means platform default
916915
* @return the list of Strings representing each line in the file
917916
* @throws IOException in case of an I/O error
918-
* @throws UnsupportedEncodingException if the encoding is not supported by the VM
917+
* @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
919918
* @since Commons IO 1.1
920919
*/
921920
public static List readLines(File file, String encoding) throws IOException {
@@ -989,7 +988,7 @@ public static LineIterator lineIterator(File file, String encoding) throws IOExc
989988
* @param data the content to write to the file
990989
* @param encoding the encoding to use, null means platform default
991990
* @throws IOException in case of an I/O error
992-
* @throws UnsupportedEncodingException if the encoding is not supported by the VM
991+
* @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
993992
*/
994993
public static void writeStringToFile(File file,
995994
String data, String encoding) throws IOException {
@@ -1032,7 +1031,7 @@ public static void writeByteArrayToFile(
10321031
* @param encoding the encoding to use, null means platform default
10331032
* @param lines the lines to write, null entries produce blank lines
10341033
* @throws IOException in case of an I/O error
1035-
* @throws UnsupportedEncodingException if the encoding is not supported by the VM
1034+
* @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
10361035
* @since Commons IO 1.1
10371036
*/
10381037
public static void writeLines(File file, String encoding, Collection lines) throws IOException {
@@ -1053,7 +1052,7 @@ public static void writeLines(File file, String encoding, Collection lines) thro
10531052
* @param lines the lines to write, null entries produce blank lines
10541053
* @param lineEnding the line separator to use, null is system default
10551054
* @throws IOException in case of an I/O error
1056-
* @throws UnsupportedEncodingException if the encoding is not supported by the VM
1055+
* @throws java.io.UnsupportedEncodingException if the encoding is not supported by the VM
10571056
* @since Commons IO 1.1
10581057
*/
10591058
public static void writeLines(File file, String encoding, Collection lines, String lineEnding) throws IOException {

0 commit comments

Comments
 (0)