package gnu.java.net.protocol.ftp;
+import gnu.java.lang.CPStringBuilder;
+
import gnu.java.net.CRLFInputStream;
import gnu.java.net.CRLFOutputStream;
import gnu.java.net.EmptyX509TrustManager;
}
// Send PORT command
- StringBuffer buf = new StringBuffer(PORT);
+ CPStringBuilder buf = new CPStringBuilder(PORT);
buf.append(' ');
// Construct the address/port string form
byte[] address = localhost.getAddress();
public void setRepresentationType(int type)
throws IOException
{
- StringBuffer buf = new StringBuffer(TYPE);
+ CPStringBuilder buf = new CPStringBuilder(TYPE);
buf.append(' ');
switch (type)
{
public void setFileStructure(int structure)
throws IOException
{
- StringBuffer buf = new StringBuffer(STRU);
+ CPStringBuilder buf = new CPStringBuilder(STRU);
buf.append(' ');
switch (structure)
{
public void setTransferMode(int mode)
throws IOException
{
- StringBuffer buf = new StringBuffer(MODE);
+ CPStringBuilder buf = new CPStringBuilder(MODE);
buf.append(' ');
switch (mode)
{
}
else if (c == '-')
{
- StringBuffer buf = new StringBuffer(line.substring(4));
+ CPStringBuilder buf = new CPStringBuilder(line.substring(4));
buf.append('\n');
while(true)
{