summaryrefslogtreecommitdiffstats
path: root/libjava/classpath/gnu/java/net/protocol/ftp
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/classpath/gnu/java/net/protocol/ftp')
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/ActiveModeDTP.java9
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/BlockInputStream.java3
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/BlockOutputStream.java3
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/CompressedInputStream.java9
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/CompressedOutputStream.java7
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/DTP.java3
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/DTPInputStream.java5
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/DTPOutputStream.java2
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java67
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/FTPException.java5
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/FTPResponse.java3
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java15
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/Handler.java3
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/PassiveModeDTP.java9
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/StreamInputStream.java5
-rw-r--r--libjava/classpath/gnu/java/net/protocol/ftp/StreamOutputStream.java9
16 files changed, 71 insertions, 86 deletions
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/ActiveModeDTP.java b/libjava/classpath/gnu/java/net/protocol/ftp/ActiveModeDTP.java
index aa3c412b6a1..1ed31b83055 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/ActiveModeDTP.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/ActiveModeDTP.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -128,7 +128,7 @@ final class ActiveModeDTP
}
acceptThread = null;
}
-
+
/**
* Returns an input stream from which a remote file can be read.
*/
@@ -213,7 +213,7 @@ final class ActiveModeDTP
transferComplete();
return inProgress;
}
-
+
public void transferComplete()
{
if (socket == null)
@@ -247,6 +247,5 @@ final class ActiveModeDTP
}
}
}
-
-}
+}
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/BlockInputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/BlockInputStream.java
index 63897f1d6db..09915e7ffe2 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/BlockInputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/BlockInputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -147,4 +147,3 @@ class BlockInputStream
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/BlockOutputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/BlockOutputStream.java
index 85481c95bd5..d181f9dec38 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/BlockOutputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/BlockOutputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -108,4 +108,3 @@ class BlockOutputStream
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/CompressedInputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/CompressedInputStream.java
index f2e65b7d37e..638d780e694 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/CompressedInputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/CompressedInputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -133,13 +133,13 @@ class CompressedInputStream
n--;
return c;
}
-
+
public int read(byte[] buf)
throws IOException
{
return read(buf, 0, buf.length);
}
-
+
public int read(byte[] buf, int off, int len)
throws IOException
{
@@ -186,7 +186,7 @@ class CompressedInputStream
return l;
*/
}
-
+
/**
* Reads the block header.
*/
@@ -212,4 +212,3 @@ class CompressedInputStream
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/CompressedOutputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/CompressedOutputStream.java
index b960fb3afe8..ec3aef93087 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/CompressedOutputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/CompressedOutputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -57,7 +57,7 @@ class CompressedOutputStream
{
super(dtp, out);
}
-
+
/**
* Just one byte cannot be compressed.
* It takes 5 bytes to transmit - hardly very compressed!
@@ -190,7 +190,7 @@ class CompressedOutputStream
System.arraycopy(buf, 0, ret, 3, pos);
return ret;
}
-
+
int flush_compressed(byte[] buf, int pos, int count, byte c)
{
buf[pos++] = (byte) (0x80 | count);
@@ -225,4 +225,3 @@ class CompressedOutputStream
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/DTP.java b/libjava/classpath/gnu/java/net/protocol/ftp/DTP.java
index 25580af403a..9ba4b7c6c66 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/DTP.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/DTP.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -89,4 +89,3 @@ interface DTP
void transferComplete();
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/DTPInputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/DTPInputStream.java
index 363a5590fbb..7280b013340 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/DTPInputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/DTPInputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -74,7 +74,7 @@ abstract class DTPInputStream
{
transferComplete = flag;
}
-
+
/**
* Notifies the controlling DTP that this stream has completed transfer.
*/
@@ -85,4 +85,3 @@ abstract class DTPInputStream
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/DTPOutputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/DTPOutputStream.java
index 83f0be1e30d..105c6f0957e 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/DTPOutputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/DTPOutputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java b/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java
index 98e8a868d60..4e253fcb987 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/FTPConnection.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -125,7 +125,7 @@ public class FTPConnection
protected static final String STAT = "STAT";
protected static final String HELP = "HELP";
protected static final String NOOP = "NOOP";
-
+
protected static final String AUTH = "AUTH";
protected static final String PBSZ = "PBSZ";
protected static final String PROT = "PROT";
@@ -211,7 +211,7 @@ public class FTPConnection
{
this(hostname, -1, 0, 0, false);
}
-
+
/**
* Creates a new connection to the server.
* @param hostname the hostname of the server to connect to
@@ -242,7 +242,7 @@ public class FTPConnection
{
port = FTP_PORT;
}
-
+
// Set up socket
socket = new Socket();
InetSocketAddress address = new InetSocketAddress(hostname, port);
@@ -258,7 +258,7 @@ public class FTPConnection
{
socket.setSoTimeout(timeout);
}
-
+
InputStream in = socket.getInputStream();
in = new BufferedInputStream(in);
in = new CRLFInputStream(in);
@@ -266,7 +266,7 @@ public class FTPConnection
OutputStream out = socket.getOutputStream();
out = new BufferedOutputStream(out);
this.out = new CRLFOutputStream(out);
-
+
// Read greeting
FTPResponse response = getResponse();
switch (response.getCode())
@@ -277,7 +277,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Authenticate using the specified username and password.
* If the username suffices for the server, the password will not be used
@@ -331,7 +331,7 @@ public class FTPConnection
{
return starttls(confidential, new EmptyX509TrustManager());
}
-
+
/**
* Negotiates TLS over the current connection.
* See IETF draft-murray-auth-ftp-ssl-15.txt for details.
@@ -351,7 +351,7 @@ public class FTPConnection
TrustManager[] trust = new TrustManager[] { tm };
context.init(null, trust, null);
SSLSocketFactory factory = context.getSocketFactory();
-
+
send(AUTH + ' ' + TLS);
FTPResponse response = getResponse();
switch (response.getCode())
@@ -367,7 +367,7 @@ public class FTPConnection
default:
throw new FTPException(response);
}
-
+
String hostname = socket.getInetAddress().getHostName();
int port = socket.getPort();
SSLSocket ss =
@@ -403,7 +403,7 @@ public class FTPConnection
default:
throw new FTPException(response);
}
-
+
if (confidential)
{
// Set up streams
@@ -422,7 +422,7 @@ public class FTPConnection
return false;
}
}
-
+
/**
* Changes directory to the specified path.
* @param path an absolute or relative pathname
@@ -447,7 +447,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Changes directory to the parent of the current working directory.
* @return true on success, false otherwise
@@ -521,7 +521,7 @@ public class FTPConnection
{
}
}
-
+
/**
* Initialise the data transfer process.
*/
@@ -533,7 +533,7 @@ public class FTPConnection
dtp.complete();
dtp = null;
}
-
+
InetAddress localhost = socket.getLocalAddress();
if (passive)
{
@@ -568,7 +568,7 @@ public class FTPConnection
{
c = message.charAt((++end) + 1);
}
-
+
String address =
message.substring(start, mid1).replace(',', '.');
int port_hi =
@@ -576,7 +576,7 @@ public class FTPConnection
int port_lo =
Integer.parseInt(message.substring(mid2 + 1, end + 1));
int port = (port_hi << 8) | port_lo;
-
+
/*System.out.println("Entering passive mode: " + address +
":" + port);*/
dtp = new PassiveModeDTP(address, port, localhost,
@@ -621,7 +621,7 @@ public class FTPConnection
}
}
}
-
+
// Send PORT command
CPStringBuilder buf = new CPStringBuilder(PORT);
buf.append(' ');
@@ -657,7 +657,7 @@ public class FTPConnection
}
dtp.setTransferMode(transferMode);
}
-
+
/**
* Set passive mode.
* @param flag true if we should use passive mode, false otherwise
@@ -671,7 +671,7 @@ public class FTPConnection
initialiseDTP();
}
}
-
+
/**
* Returns the current representation type of the transfer data.
* @return TYPE_ASCII, TYPE_EBCDIC, or TYPE_BINARY
@@ -809,7 +809,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Retrieves the specified file.
* @param filename the filename of the file to retrieve
@@ -849,7 +849,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Returns a stream for uploading a file.
* If a file with the same filename already exists on the server, it will
@@ -903,7 +903,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* This command may be required by some servers to reserve sufficient
* storage to accommodate the new file to be transferred.
@@ -926,7 +926,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Renames a file.
* @param oldName the current name of the file
@@ -963,7 +963,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Aborts the transfer in progress.
* @return true if a transfer was in progress, false otherwise
@@ -993,7 +993,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Causes the file specified to be deleted at the server site.
* @param filename the file to delete
@@ -1015,7 +1015,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Causes the directory specified to be deleted.
* This may be an absolute or relative pathname.
@@ -1059,7 +1059,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Returns the current working directory.
*/
@@ -1097,7 +1097,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Returns a listing of information about the specified pathname.
* If the pathname specifies a directory or other group of files, the
@@ -1133,7 +1133,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Returns a directory listing. The pathname should specify a
* directory or other system-specific file group descriptor; a null
@@ -1179,7 +1179,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Returns the type of operating system at the server.
*/
@@ -1205,7 +1205,7 @@ public class FTPConnection
throw new FTPException(response);
}
}
-
+
/**
* Does nothing.
* This method can be used to ensure that the connection does not time
@@ -1316,7 +1316,7 @@ public class FTPConnection
throw new ProtocolException(line);
}
}
-
+
/*
* Parses the 3-digit numeric code at the beginning of the given line.
* Returns -1 on failure.
@@ -1350,4 +1350,3 @@ public class FTPConnection
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/FTPException.java b/libjava/classpath/gnu/java/net/protocol/ftp/FTPException.java
index 14ad3813f85..1a7fcb85dcc 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/FTPException.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/FTPException.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -63,7 +63,7 @@ public class FTPException
super(response.getMessage());
this.response = response;
}
-
+
/**
* Returns the response that provoked this exception.
*/
@@ -73,4 +73,3 @@ public class FTPException
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/FTPResponse.java b/libjava/classpath/gnu/java/net/protocol/ftp/FTPResponse.java
index ec72c732c1c..2620f0d7092 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/FTPResponse.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/FTPResponse.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -109,4 +109,3 @@ public final class FTPResponse
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java b/libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java
index cfad5a7c1a6..8cc1fafd174 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/FTPURLConnection.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -137,7 +137,7 @@ public class FTPURLConnection
connection.setTransferMode(transferMode);
}
}
-
+
/**
* This connection supports doInput.
*/
@@ -153,7 +153,7 @@ public class FTPURLConnection
{
doOutput = dooutput;
}
-
+
/**
* Returns an input stream that reads from this open connection.
*/
@@ -174,7 +174,7 @@ public class FTPURLConnection
return this.new ClosingInputStream(connection.retrieve(path));
}
}
-
+
/**
* Returns an output stream that writes to this connection.
*/
@@ -252,7 +252,7 @@ public class FTPURLConnection
l.add(value);
map.put(key, l);
}
-
+
public void setRequestProperty(String key, String value)
{
if (connected)
@@ -351,7 +351,7 @@ public class FTPURLConnection
super.close();
connection.logout();
}
-
+
}
class ClosingOutputStream
@@ -369,8 +369,7 @@ public class FTPURLConnection
super.close();
connection.logout();
}
-
+
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/Handler.java b/libjava/classpath/gnu/java/net/protocol/ftp/Handler.java
index 88491b3c15a..7638b6664f0 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/Handler.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/Handler.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -67,4 +67,3 @@ public class Handler
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/PassiveModeDTP.java b/libjava/classpath/gnu/java/net/protocol/ftp/PassiveModeDTP.java
index 6f4fd634168..a74346c74cd 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/PassiveModeDTP.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/PassiveModeDTP.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -118,7 +118,7 @@ final class PassiveModeDTP
in.setTransferComplete(false);
return in;
}
-
+
/**
* Returns an output stream to which a local file can be written for
* upload.
@@ -147,12 +147,12 @@ final class PassiveModeDTP
out.setTransferComplete(false);
return out;
}
-
+
public void setTransferMode(int mode)
{
transferMode = mode;
}
-
+
public void complete()
{
completed = true;
@@ -198,4 +198,3 @@ final class PassiveModeDTP
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/StreamInputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/StreamInputStream.java
index 93eee4e1924..beee14bcbf9 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/StreamInputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/StreamInputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -54,7 +54,7 @@ class StreamInputStream
{
super(dtp, in);
}
-
+
public int read()
throws IOException
{
@@ -92,4 +92,3 @@ class StreamInputStream
}
}
-
diff --git a/libjava/classpath/gnu/java/net/protocol/ftp/StreamOutputStream.java b/libjava/classpath/gnu/java/net/protocol/ftp/StreamOutputStream.java
index a6e28ece3d4..2df1a87d8dd 100644
--- a/libjava/classpath/gnu/java/net/protocol/ftp/StreamOutputStream.java
+++ b/libjava/classpath/gnu/java/net/protocol/ftp/StreamOutputStream.java
@@ -7,7 +7,7 @@ GNU Classpath is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-
+
GNU Classpath is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
@@ -54,7 +54,7 @@ class StreamOutputStream
{
super(dtp, out);
}
-
+
public void write(int c)
throws IOException
{
@@ -70,7 +70,7 @@ class StreamOutputStream
{
write(b, 0, b.length);
}
-
+
public void write(byte[] b, int off, int len)
throws IOException
{
@@ -80,6 +80,5 @@ class StreamOutputStream
}
out.write(b, off, len);
}
-
-}
+}
OpenPOWER on IntegriCloud