![]() |
All Packages This Package Class Hierarchy Class Search Index Class grendel.storage.NNTPConnectionjava.lang.Object | +----grendel.storage.NNTPConnection
class NNTPConnection
extends java.lang.Object
{
// Fields 15
static final boolean DEBUG;
public static final int DEFAULT_NNTP_PORT;
protected boolean hasListSubscrExtension;
protected boolean hasOverExtension;
protected boolean hasSetGetExtension;
protected boolean hasXpatTextExtension;
String host;
LineBufferingInputStream input;
OutputStream output;
String pass;
protected NNTPDotTerminatedInputStream pending_dot_stream;
int port;
String selected_group;
Socket socket;
String user;
// Constructors 1
NNTPConnection();
// Methods 29
synchronized InputStream ARTICLE(String) throws IOException;
synchronized InputStream ARTICLE(String, long) throws IOException;
synchronized InputStream BODY(String) throws IOException;
synchronized InputStream BODY(String, long) throws IOException;
synchronized String GET(String) throws IOException;
synchronized int[] GROUP(String) throws IOException;
synchronized NewsMessage HEAD(NewsFolder, String) throws IOException;
synchronized NewsMessage HEAD(NewsFolder, long) throws IOException;
protected synchronized String[] LIST_EXTENSIONS() throws IOException;
synchronized void LIST_SEARCHES();
synchronized void LIST_SRCHFIELDS();
synchronized String[] LIST_SUBSCRIPTIONS() throws IOException;
protected synchronized void MODE_READER() throws IOException;
synchronized InputStream NEWGROUPS(Date) throws IOException;
synchronized InputStream OVER(String, long, long) throws IOException;
protected void checkString(String) throws NNTPException;
synchronized void close();
synchronized boolean connect(String, int, String, String) throws UnknownHostException, IOException;
synchronized void dotStreamFinished(NNTPDotTerminatedInputStream);
protected void flushDotStream();
Enumeration getMessages(NewsFolder, long, long) throws IOException;
protected synchronized NNTPDotTerminatedInputStream newDotStream();
NewsMessage parseOverviewLine(NewsFolder, byte[], int, int);
private synchronized InternetHeaders readHeaders(String) throws IOException;
protected synchronized String readLine() throws IOException;
protected synchronized void readLine(ByteBuf) throws IOException;
protected synchronized int readResponse(ByteBuf) throws IOException;
protected synchronized void write(byte[], int, int) throws IOException;
protected synchronized void write(String) throws IOException;
}
Fields DEBUGstatic final boolean DEBUG socketSocket socket inputLineBufferingInputStream input outputOutputStream output selected_groupString selected_group hostString host portint port userString user passString pass pending_dot_streamprotected NNTPDotTerminatedInputStream pending_dot_stream DEFAULT_NNTP_PORTpublic static final int DEFAULT_NNTP_PORT hasSetGetExtensionprotected boolean hasSetGetExtension hasOverExtensionprotected boolean hasOverExtension hasXpatTextExtensionprotected boolean hasXpatTextExtension hasListSubscrExtensionprotected boolean hasListSubscrExtension
Constructors NNTPConnectionNNTPConnection() Methods connectsynchronized boolean connect(String host, int port, String user, String password) throws UnknownHostException, IOException closesynchronized void close() write
protected synchronized void write(byte[] b,
int start,
int length) throws IOException
writeprotected synchronized void write(String buf) throws IOException readLineprotected synchronized void readLine(ByteBuf into_buf) throws IOException readLineprotected synchronized String readLine() throws IOException flushDotStreamprotected void flushDotStream() newDotStreamprotected synchronized NNTPDotTerminatedInputStream newDotStream() checkStringprotected void checkString(String s) throws NNTPException readResponseprotected synchronized int readResponse(ByteBuf into_buf) throws IOException MODE_READERprotected synchronized void MODE_READER() throws IOException LIST_EXTENSIONSprotected synchronized String[] LIST_EXTENSIONS() throws IOException
LIST_SEARCHESsynchronized void LIST_SEARCHES() LIST_SRCHFIELDSsynchronized void LIST_SRCHFIELDS() GETsynchronized String GET(String prop) throws IOException LIST_SUBSCRIPTIONSsynchronized String[] LIST_SUBSCRIPTIONS() throws IOException
GROUPsynchronized int[] GROUP(String group_name) throws IOException
readHeadersprivate synchronized InternetHeaders readHeaders(String terminator) throws IOException HEADsynchronized NewsMessage HEAD(NewsFolder folder, String id) throws IOException HEADsynchronized NewsMessage HEAD(NewsFolder folder, long article) throws IOException BODYsynchronized InputStream BODY(String id) throws IOException
BODYsynchronized InputStream BODY(String group, long article) throws IOException ARTICLEsynchronized InputStream ARTICLE(String id) throws IOException
ARTICLEsynchronized InputStream ARTICLE(String group, long article) throws IOException NEWGROUPSsynchronized InputStream NEWGROUPS(Date since) throws IOException
OVERsynchronized InputStream OVER(String group, long from, long to) throws IOException
dotStreamFinishedsynchronized void dotStreamFinished(NNTPDotTerminatedInputStream stream) parseOverviewLineNewsMessage parseOverviewLine(NewsFolder folder, byte[] line, int start, int length) getMessagesEnumeration getMessages(NewsFolder folder, long from, long to) throws IOException All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.4 |
|
|
Copyright © 1998-2000 The Mozilla Organization.
Last modified December 25, 1998. |
|