# Deprecated API

## Contents

- Deprecated Classes
- Deprecated Fields
- Deprecated Methods

- Deprecated Classes
  Class and Description
  org.apache.commons.net.nntp.ArticlePointer 3.0 use `ArticleInfo` instead
  org.apache.commons.net.ftp.FTPCommand use `FTPCmd` instead
  org.apache.commons.net.ftp.FTPSCommand 3.0 DO NOT USE
  org.apache.commons.net.ftp.FTPSTrustManager 3.0 use `TrustManagerUtils#getValidateServerCertificateTrustManager()` instead

- Deprecated Fields
  Field and Description
  org.apache.commons.net.ftp.FTPSClient.KEYSTORE_ALGORITHM - not used - may be removed in a future release
  org.apache.commons.net.ftp.FTPSClient.PROVIDER - not used - may be removed in a future release
  org.apache.commons.net.ftp.FTPSClient.STORE_TYPE - not used - may be removed in a future release
  org.apache.commons.net.ftp.FTPSClient.TRUSTSTORE_ALGORITHM - not used - may be removed in a future release

- Deprecated Methods
  Method and Description
  org.apache.commons.net.ftp.FTPClient._openDataConnection_(int, String) (3.3) Use `FTPClient._openDataConnection_(FTPCmd, String)` instead
  org.apache.commons.net.ftp.FTPHTTPClient._openDataConnection_(int, String) (3.3) Use `FTPClient._openDataConnection_(FTPCmd, String)` instead
  org.apache.commons.net.ftp.FTPSClient._openDataConnection_(int, String) (3.3) Use `FTPClient._openDataConnection_(FTPCmd, String)` instead
  org.apache.commons.net.nntp.Article.addHeaderField(String, String)
  org.apache.commons.net.imap.IMAPClient.append(String) (3.4) Does not work; the message body is not optional. Use `IMAPClient.append(String, String, String, String)` instead.
  org.apache.commons.net.imap.IMAPClient.append(String, String, String) (3.4) Does not work; the message body is not optional. Use `IMAPClient.append(String, String, String, String)` instead.
  org.apache.commons.net.nntp.NNTP.article(int) - for API compatibility only - DO NOT USE
  org.apache.commons.net.nntp.NNTP.body(int) - for API compatibility only - DO NOT USE
  org.apache.commons.net.ftp.FTPSSocketFactory.createServerSocket(int) (2.2) use `instead`
  org.apache.commons.net.ftp.FTPSSocketFactory.createServerSocket(int, int) (2.2) use `instead`
  org.apache.commons.net.ftp.FTPSSocketFactory.createServerSocket(int, int, InetAddress) (2.2) use `instead`
  org.apache.commons.net.util.SubnetUtils.SubnetInfo.getAddressCount() (3.4) use `SubnetUtils.SubnetInfo.getAddressCountLong()` instead
  org.apache.commons.net.nntp.NewsgroupInfo.getArticleCount()
  org.apache.commons.net.nntp.Article.getArticleNumber()
  org.apache.commons.net.DatagramSocketClient.getCharsetName() Use `DatagramSocketClient.getCharset()` instead
  org.apache.commons.net.SocketClient.getCharsetName() Since the code now requires Java 1.6 as a mininmum
  org.apache.commons.net.ftp.FTPClient.getCslDebug() 3.7 For testing only; may be dropped or changed at any time
  org.apache.commons.net.nntp.NewsgroupInfo.getFirstArticle()
  org.apache.commons.net.nntp.NewsgroupInfo.getLastArticle()
  org.apache.commons.net.ftp.parser.ParserInitializationException.getRootCause() use `Throwable.getCause()` instead
  org.apache.commons.net.ftp.FTPClient.getSystemName() use `FTPClient.getSystemType()` instead
  org.apache.commons.net.nntp.NNTP.head(int) - for API compatibility only - DO NOT USE
  org.apache.commons.net.ftp.FTPSSocketFactory.init(ServerSocket) (2.2) use `FTPSServerSocketFactory.init(java.net.ServerSocket)`
  org.apache.commons.net.ftp.parser.VMSFTPEntryParser.parseFileList(InputStream) (2.2) No other FTPFileEntryParser implementations have this method.
  org.apache.commons.net.ftp.FTPListParseEngine.readServerList(InputStream) use `FTPListParseEngine.readServerList(InputStream, String)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticle(int) 3.0 use `NNTPClient.retrieveArticle(long)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticle(int, ArticlePointer) 3.0 use `NNTPClient.retrieveArticle(long, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticle(String, ArticlePointer) 3.0 use `NNTPClient.retrieveArticle(String, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleBody(int) 3.0 use `NNTPClient.retrieveArticleBody(long)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleBody(int, ArticlePointer) 3.0 use `NNTPClient.retrieveArticleBody(long, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleBody(String, ArticlePointer) 3.0 use `NNTPClient.retrieveArticleBody(String, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleHeader(int) 3.0 use `NNTPClient.retrieveArticleHeader(long)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleHeader(int, ArticlePointer) 3.0 use `NNTPClient.retrieveArticleHeader(long, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleHeader(String, ArticlePointer) 3.0 use `NNTPClient.retrieveArticleHeader(String, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleInfo(int) 3.0 use `NNTPClient.retrieveArticleInfo(long)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveArticleInfo(int, int) 3.0 use `NNTPClient.retrieveArticleInfo(long, long)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveHeader(String, int) 3.0 use `NNTPClient.retrieveHeader(String, long)` instead
  org.apache.commons.net.nntp.NNTPClient.retrieveHeader(String, int, int) 3.0 use `NNTPClient.retrieveHeader(String, long, long)` instead
  org.apache.commons.net.nntp.NNTPClient.selectArticle(ArticlePointer) 3.0 use `NNTPClient.selectArticle(ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.selectArticle(int) 3.0 use `NNTPClient.selectArticle(long)` instead
  org.apache.commons.net.nntp.NNTPClient.selectArticle(int, ArticlePointer) 3.0 use `NNTPClient.selectArticle(long, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.selectArticle(String, ArticlePointer) 3.0 use `NNTPClient.selectArticle(String, ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.selectNextArticle(ArticlePointer) 3.0 use `NNTPClient.selectNextArticle(ArticleInfo)` instead
  org.apache.commons.net.nntp.NNTPClient.selectPreviousArticle(ArticlePointer) 3.0 use `NNTPClient.selectPreviousArticle(ArticleInfo)` instead
  org.apache.commons.net.ftp.FTP.sendCommand(int, String) (3.3) Use `FTP.sendCommand(FTPCmd, String)` instead
  org.apache.commons.net.nntp.Article.setArticleNumber(int)
  org.apache.commons.net.ftp.FTPClient.setPassiveNatWorkaround(boolean) (3.6) use `FTPClient.setPassiveNatWorkaroundStrategy(HostnameResolver)` instead
  org.apache.commons.net.nntp.NNTP.stat(int) - for API compatibility only - DO NOT USE
  org.apache.commons.net.nntp.Threader.thread(Threadable[]) (2.2) prefer `Threader.thread(List)`

Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.