Class V2ContentProducer

java.lang.Object
jp.cssj.driver.ctip.v2.V2ContentProducer
Direct Known Subclasses:
TLSV2ContentProducer

public class V2ContentProducer extends Object
  • Field Details

    • charset

      protected final String charset
    • serverURI

      protected final URI serverURI
    • io

      protected ChannelIO io
  • Constructor Details

  • Method Details

    • connect

      public V2RequestConsumer connect(String user, String password) throws IOException
      サーバーに接続し、リクエストを開始します。
      Parameters:
      user -
      password -
      Throws:
      IOException
    • createChannel

      protected ByteChannel createChannel(InetSocketAddress address) throws IOException
      Throws:
      IOException
    • close

      protected void close() throws IOException
      Throws:
      IOException
    • next

      public void next() throws IOException
      次のパケットにカーソルを移します。
      Throws:
      IOException
    • getBlockId

      public int getBlockId() throws IOException
      断片のIDを返します。
      Returns:
      断片のID。
      Throws:
      IOException
    • getAnchorId

      public int getAnchorId() throws IOException
      アンカーとなる断片のIDを返します。
      Returns:
      断片のID。
      Throws:
      IOException
    • getType

      public byte getType() throws IOException
      現在のパケットのデータのタイプを返します。
      Returns:
      パケットのタイプ。
      Throws:
      IOException
    • getLength

      public long getLength() throws IOException
      進行状況を返します。
      Returns:
      バイト数。
      Throws:
      IOException
    • getMessage

      public String getMessage() throws IOException
      メッセージを返します。
      Returns:
      メッセージの文字列。
      Throws:
      IOException
    • getArgs

      public String[] getArgs() throws IOException
      メッセージの引数返します。
      Returns:
      メッセージの引数。
      Throws:
      IOException
    • getURI

      public URI getURI() throws IOException
      データのURIを返します。
      Returns:
      データのURI。
      Throws:
      IOException
    • getMimeType

      public String getMimeType() throws IOException
      データのMIME型を返します。
      Returns:
      データのMIME型。
      Throws:
      IOException
    • getEncoding

      public String getEncoding() throws IOException
      データのエンコーディングを返します。
      Returns:
      データのエンコーディング。
      Throws:
      IOException
    • getCode

      public short getCode() throws IOException
      メッセージコードを返します。
      Returns:
      メッセージコード。
      Throws:
      IOException
    • getMode

      public byte getMode() throws IOException
      中断処理のモードを返します。
      Returns:
      中断処理のモード。
      Throws:
      IOException
    • read

      public int read(byte[] b, int off, int len) throws IOException
      データを取得します。
      Parameters:
      b - データが格納されるバッファ。
      off - バッファの開始位置。
      len - バッファに格納可能なバイト数。
      Returns:
      取得されたデータの長さ。データがない場合は-1。
      Throws:
      IOException