Package jp.cssj.driver.ctip.v2
Class V2ContentProducer
java.lang.Object
jp.cssj.driver.ctip.v2.V2ContentProducer
- Direct Known Subclasses:
TLSV2ContentProducer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclose()サーバーに接続し、リクエストを開始します。protected ByteChannelcreateChannel(InetSocketAddress address) intアンカーとなる断片のIDを返します。String[]getArgs()メッセージの引数返します。int断片のIDを返します。shortgetCode()メッセージコードを返します。データのエンコーディングを返します。long進行状況を返します。メッセージを返します。データのMIME型を返します。bytegetMode()中断処理のモードを返します。bytegetType()現在のパケットのデータのタイプを返します。getURI()データのURIを返します。voidnext()次のパケットにカーソルを移します。intread(byte[] b, int off, int len) データを取得します。
-
Field Details
-
charset
-
serverURI
-
io
-
-
Constructor Details
-
V2ContentProducer
- Throws:
IOException
-
-
Method Details
-
connect
サーバーに接続し、リクエストを開始します。- Parameters:
user-password-- Throws:
IOException
-
createChannel
- Throws:
IOException
-
close
- Throws:
IOException
-
next
次のパケットにカーソルを移します。- Throws:
IOException
-
getBlockId
断片のIDを返します。- Returns:
- 断片のID。
- Throws:
IOException
-
getAnchorId
アンカーとなる断片のIDを返します。- Returns:
- 断片のID。
- Throws:
IOException
-
getType
現在のパケットのデータのタイプを返します。- Returns:
- パケットのタイプ。
- Throws:
IOException
-
getLength
進行状況を返します。- Returns:
- バイト数。
- Throws:
IOException
-
getMessage
メッセージを返します。- Returns:
- メッセージの文字列。
- Throws:
IOException
-
getArgs
メッセージの引数返します。- Returns:
- メッセージの引数。
- Throws:
IOException
-
getURI
データのURIを返します。- Returns:
- データのURI。
- Throws:
IOException
-
getMimeType
データのMIME型を返します。- Returns:
- データのMIME型。
- Throws:
IOException
-
getEncoding
データのエンコーディングを返します。- Returns:
- データのエンコーディング。
- Throws:
IOException
-
getCode
メッセージコードを返します。- Returns:
- メッセージコード。
- Throws:
IOException
-
getMode
中断処理のモードを返します。- Returns:
- 中断処理のモード。
- Throws:
IOException
-
read
データを取得します。- Parameters:
b- データが格納されるバッファ。off- バッファの開始位置。len- バッファに格納可能なバイト数。- Returns:
- 取得されたデータの長さ。データがない場合は-1。
- Throws:
IOException
-