Package org.sonews.daemon
Interface NNTPConnection
- All Known Implementing Classes:
ThreadedNNTPConnection
public interface NNTPConnection
Interface for an NNTP connection. This interface is implemented by
SynchronousNNTPConnection and AsynchronousNNTPConnection which use similar
but not compatible NIO APIs.
- Author:
- Christian Lins
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
Deprecated.getUser()
void
println
(byte[] line) void
println
(CharSequence line) void
setCurrentArticle
(Article art) void
setCurrentGroup
(Group group) void
setLastActivity
(long time) void
-
Field Details
-
NEWLINE
- See Also:
-
MESSAGE_ID_PATTERN
- See Also:
-
-
Method Details
-
close
- Throws:
IOException
-
getCurrentArticle
Article getCurrentArticle() -
getCurrentCharset
Charset getCurrentCharset() -
getCurrentGroup
Group getCurrentGroup() -
getLastActivity
long getLastActivity() -
getSocketChannel
Deprecated. -
getUser
User getUser() -
println
- Throws:
IOException
-
println
-
setCurrentArticle
-
setCurrentGroup
-
setLastActivity
void setLastActivity(long time) -
setUser
-