Package org.sonews.util.io
Klasse ArticleWriter
java.lang.Object
org.sonews.util.io.ArticleWriter
Posts an ArticleImpl to a NNTP server using the POST command.
- Seit:
- sonews/0.5.0
- Autor:
- Christian Lins
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprivate final BufferedReaderprivate final BufferedOutputStreamprivate final Socket -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidclose()protected voidprotected voidvoidwriteArticle(byte[] rawArticle) Writes the raw content of an article to the remote server.voidwriteArticle(Article article) protected voidwriteLine(byte[] buffer, int len) Writes the given buffer to the connect remote server.
-
Felddetails
-
out
-
inr
-
socket
-
-
Konstruktordetails
-
ArticleWriter
- Löst aus:
IOExceptionUnknownHostException
-
-
Methodendetails
-
close
- Löst aus:
IOExceptionUnsupportedEncodingException
-
finishPOST
- Löst aus:
IOException
-
preparePOST
- Löst aus:
IOException
-
writeArticle
- Löst aus:
IOExceptionUnsupportedEncodingException
-
writeArticle
Writes the raw content of an article to the remote server. This method does no charset conversion/handling of any kind so its the preferred method for sending an article to remote peers.- Parameter:
rawArticle-- Löst aus:
IOException
-
writeLine
Writes the given buffer to the connect remote server.- Parameter:
buffer-len-- Löst aus:
IOException
-