jp.cssj.cti.ctip
クラス CTIPUtils

java.lang.Object
  拡張jp.cssj.cti.ctip.CTIPUtils

public final class CTIPUtils
extends Object

バージョン:
$Id: CTIPUtils.java,v 1.2 2005/08/18 04:51:26 harumanx Exp $
作成者:
MIYABE Tatsuhiko

メソッドの概要
static void readAll(SocketChannel channel, ByteBuffer dest)
           
static byte readByte(SocketChannel channel, ByteBuffer destByte)
           
static int readInt(SocketChannel channel, ByteBuffer destInt)
           
static String readString(SocketChannel channel, ByteBuffer destShort, String encoding)
           
static byte[] toBytes(String str, String encoding)
           
static void writeAll(SocketChannel channel, ByteBuffer src)
           
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

readInt

public static int readInt(SocketChannel channel,
                          ByteBuffer destInt)
                   throws IOException
例外:
IOException

readByte

public static byte readByte(SocketChannel channel,
                            ByteBuffer destByte)
                     throws IOException
例外:
IOException

readString

public static String readString(SocketChannel channel,
                                ByteBuffer destShort,
                                String encoding)
                         throws IOException
例外:
IOException

readAll

public static void readAll(SocketChannel channel,
                           ByteBuffer dest)
                    throws IOException
例外:
IOException

toBytes

public static byte[] toBytes(String str,
                             String encoding)
                      throws IOException
例外:
IOException

writeAll

public static void writeAll(SocketChannel channel,
                            ByteBuffer src)
                     throws IOException
例外:
IOException


Copyright(c) 2004-2005 CSSJ T.MIYABE All Rights Reserved.