クラス
java.nio.ByteBufferの使用

ByteBufferを使用しているパッケージ 
パッケージ 説明
com.sun.nio.sctp
Stream Control Transport Protocol用のJava APIです。
java.lang
Javaプログラミング言語の設計にあたり基本的なクラスを提供します。
java.lang.module
モジュール記述子をサポートし、解決とサービス・バインディングによってモジュールの構成を作成するクラス。
java.net.http
HTTPクライアントおよびWebSocket API
java.nio
データのコンテナであるバッファについて定義し、その他のNIOパッケージの概要情報を提供します。
java.nio.channels
入出力操作を実行できるエンティティ(ファイル、ソケットなど)への接続を表すチャネルや、多重化された非ブロック入出力操作用のセレクタを定義します。
java.nio.charset
byteとUnicode文字の相互変換を行うため、文字セット、デコーダ、およびエンコーダを定義します。
java.nio.file.attribute
ファイルおよびファイル・システム属性へのアクセスを提供するインタフェースとクラスです。
java.security
セキュリティ・フレームワークのクラスとインタフェースを提供します。
java.util
コレクション・フレームワーク、国際化サポート・クラス、サービス・ローダー、プロパティ、乱数生成、文字列解析とスキャン・クラス、Base64エンコーディングとデコード、ビット配列、およびその他のユーティリティ・クラスが含まれています。
java.util.zip
標準のZIPおよびGZIPファイル形式の読み込みおよび書込み用クラスを提供します。
javax.crypto
暗号化操作のクラスとインタフェースを提供します。
javax.net.ssl
セキュア・ソケット・パッケージのクラスを提供します。
javax.smartcardio
Java™スマート・カード入出力API
jdk.nashorn.api.scripting
このパッケージでは、Nashornを使用する推奨方法であるjavax.scriptの統合を提供します。
  • com.sun.nio.sctpでのByteBufferの使用

    ByteBufferを戻すcom.sun.nio.sctpのメソッド
    修飾子と型 メソッド 説明
    abstract ByteBuffer SendFailedNotification.buffer()
    送信されたデータを返します。
    ByteBufferのパラメータを持つcom.sun.nio.sctpのメソッド
    修飾子と型 メソッド 説明
    abstract <T> MessageInfo SctpChannel.receive​(ByteBuffer dst, T attachment, NotificationHandler<T> handler)
    指定されたバッファへのメッセージを受信するか、通知を処理します(あるいはその両方を行います)。
    abstract <T> MessageInfo SctpMultiChannel.receive​(ByteBuffer buffer, T attachment, NotificationHandler<T> handler)
    このチャネル経由でメッセージを受信するか、通知を処理します(あるいはその両方を行います)。
    abstract int SctpChannel.send​(ByteBuffer src, MessageInfo messageInfo)
    このチャネル経由でメッセージを送信します。
    abstract int SctpMultiChannel.send​(ByteBuffer buffer, MessageInfo messageInfo)
    このチャネル経由でメッセージを送信します。
  • java.langでのByteBufferの使用

    ByteBuffer型のパラメータを持つjava.langのメソッド 
    修飾子と型 メソッド 説明
    protected Class<?> ClassLoader.defineClass​(String name, ByteBuffer b, ProtectionDomain protectionDomain)
    指定されたProtectionDomainを使用して、ByteBufferをクラスClassのインスタンスに変換します。
  • java.lang.moduleでのByteBufferの使用

    ByteBufferの引数を持つ型を返すjava.lang.moduleのメソッド
    修飾子と型 メソッド 説明
    default Optional<ByteBuffer> ModuleReader.read​(String name)
    リソースを読み込み、リソースの内容を含むバイト・バッファを返します。
    ByteBufferのパラメータを持つjava.lang.moduleのメソッド
    修飾子と型 メソッド 説明
    static ModuleDescriptor ModuleDescriptor.read​(ByteBuffer bb)
    モジュール記述子のバイナリ形式をバイト・バッファからモジュール記述子として読み込みます。
    static ModuleDescriptor ModuleDescriptor.read​(ByteBuffer bb, Supplier<Set<String>> packageFinder)
    モジュール記述子のバイナリ形式をバイト・バッファからモジュール記述子として読み込みます。
    default void ModuleReader.release​(ByteBuffer bb)
    バイト・バッファを解放します。
  • java.net.httpでのByteBufferの使用

    ByteBufferの型パラメータを持つjava.net.httpのメソッド
    修飾子と型 メソッド 説明
    static <S extends Flow.Subscriber<? super List<ByteBuffer>>,​ T>
    HttpResponse.BodyHandler<T>
    HttpResponse.BodyHandlers.fromSubscriber​(S subscriber, Function<? super S,​? extends T> finisher)
    指定されたsubscriberおよびfinisher関数を使用して、HttpResponse.BodySubscribers.fromSubscriber(Subscriber, Function)から取得されたBodySubscriber<T>を返すレスポンス本文ハンドラを返します。
    static <S extends Flow.Subscriber<? super List<ByteBuffer>>,​ T>
    HttpResponse.BodySubscriber<T>
    HttpResponse.BodySubscribers.fromSubscriber​(S subscriber, Function<? super S,​? extends T> finisher)
    すべてのレスポンス本文を指定されたFlow.Subscriberに転送する本文サブスクライバを返します。
    ByteBufferの引数を持つ型を返すjava.net.httpのメソッド
    修飾子と型 メソッド 説明
    static HttpResponse.BodyHandler<Flow.Publisher<List<ByteBuffer>>> HttpResponse.BodyHandlers.ofPublisher()
    BodySubscribers.ofPublisher()から取得したBodySubscriber<Publisher<List<ByteBuffer>>>を作成するBodyHandler<Publisher<List<ByteBuffer>>>を返します。
    static HttpResponse.BodySubscriber<Flow.Publisher<List<ByteBuffer>>> HttpResponse.BodySubscribers.ofPublisher()
    Publisher<List<ByteBuffer>>を介してレスポンス本文をパブリッシュするレスポンス・サブスクライバを返します。
    ByteBufferのパラメータを持つjava.net.httpのメソッド
    修飾子と型 メソッド 説明
    default CompletionStage<?> WebSocket.Listener.onBinary​(WebSocket webSocket, ByteBuffer data, boolean last)
    バイナリ・データを受け取りました。
    default CompletionStage<?> WebSocket.Listener.onPing​(WebSocket webSocket, ByteBuffer message)
    Pingメッセージを受信しました。
    default CompletionStage<?> WebSocket.Listener.onPong​(WebSocket webSocket, ByteBuffer message)
    Pongメッセージが受信されました。
    CompletableFuture<WebSocket> WebSocket.sendBinary​(ByteBuffer data, boolean last)
    指定されたバッファのバイトとともにバイナリ・データを送信します。
    CompletableFuture<WebSocket> WebSocket.sendPing​(ByteBuffer message)
    指定されたバッファのバイトとともにpingメッセージを送信します。
    CompletableFuture<WebSocket> WebSocket.sendPong​(ByteBuffer message)
    指定されたバッファからバイトを含むPongメッセージを送信します。
    ByteBufferの型引数を持つjava.net.httpのメソッド・パラメータ
    修飾子と型 メソッド 説明
    static HttpRequest.BodyPublisher HttpRequest.BodyPublishers.fromPublisher​(Flow.Publisher<? extends ByteBuffer> publisher)
    指定されたFlow.Publisherから本文が取得されたリクエスト・ボディ・パブリッシャを返します。
    static HttpRequest.BodyPublisher HttpRequest.BodyPublishers.fromPublisher​(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength)
    指定されたFlow.Publisherから本文が取得されたリクエスト・ボディ・パブリッシャを返します。
    static HttpResponse.BodyHandler<Void> HttpResponse.BodyHandlers.fromSubscriber​(Flow.Subscriber<? super List<ByteBuffer>> subscriber)
    指定されたHttpResponse.BodySubscribers.fromSubscriber(Subscriber)から取得されたBodySubscriber<Void>を返すレスポンス本文ハンドラを返します。
    static HttpResponse.BodySubscriber<Void> HttpResponse.BodySubscribers.fromSubscriber​(Flow.Subscriber<? super List<ByteBuffer>> subscriber)
    すべてのレスポンス本文を指定されたFlow.Subscriberに転送する本文サブスクライバを返します。
  • java.nioでのByteBufferの使用

    java.nioでのByteBufferのサブクラス 
    修飾子と型 クラス 説明
    class  MappedByteBuffer
    ファイルのメモリー・マップ領域を内容とするダイレクトbyteバッファです。
    ByteBufferを返すjava.nioのメソッド 
    修飾子と型 メソッド 説明
    ByteBuffer ByteBuffer.alignedSlice​(int unitSize)
    このバッファの内容の共有されて整列されたサブシーケンスである内容を持つ新しいバイト・バッファを作成します。
    static ByteBuffer ByteBuffer.allocate​(int capacity)
    新しいbyteバッファを割り当てます。
    static ByteBuffer ByteBuffer.allocateDirect​(int capacity)
    新しいダイレクトbyteバッファを割り当てます。
    abstract ByteBuffer ByteBuffer.asReadOnlyBuffer()
    このバッファの内容を共有する新しい読込み専用byteバッファを作成します。
    ByteBuffer ByteBuffer.clear()
    このバッファをクリアします。
    abstract ByteBuffer ByteBuffer.compact()
    このバッファを圧縮します  (オプションの操作)
    abstract ByteBuffer ByteBuffer.duplicate()
    このバッファの内容を共有する新しいbyteバッファを作成します。
    ByteBuffer ByteBuffer.flip()
    このバッファをフリップ(反転)します。
    ByteBuffer ByteBuffer.get​(byte[] dst)
    相対一括getメソッドです。
    ByteBuffer ByteBuffer.get​(byte[] dst, int offset, int length)
    相対一括getメソッドです。
    ByteBuffer ByteBuffer.get​(int index, byte[] dst)
    絶対一括getメソッド。
    ByteBuffer ByteBuffer.get​(int index, byte[] dst, int offset, int length)
    絶対一括getメソッド。
    ByteBuffer ByteBuffer.limit​(int newLimit)
    このバッファのリミットを設定します。
    ByteBuffer ByteBuffer.mark()
    このバッファの現在位置にマークを設定します。
    ByteBuffer ByteBuffer.order​(ByteOrder bo)
    このバッファのbyte順序を変更します。
    ByteBuffer ByteBuffer.position​(int newPosition)
    このバッファの位置を設定します。
    abstract ByteBuffer ByteBuffer.put​(byte b)
    相対putメソッドです  (オプションの操作)
    ByteBuffer ByteBuffer.put​(byte[] src)
    相対一括putメソッドです  (オプションの操作)
    ByteBuffer ByteBuffer.put​(byte[] src, int offset, int length)
    相対一括putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.put​(int index, byte b)
    絶対putメソッドです  (オプションの操作)
    ByteBuffer ByteBuffer.put​(int index, byte[] src)
    (optional operation)の絶対一括putメソッド。
    ByteBuffer ByteBuffer.put​(int index, byte[] src, int offset, int length)
    (optional operation)の絶対一括putメソッド。
    ByteBuffer ByteBuffer.put​(ByteBuffer src)
    相対一括putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putChar​(char value)
    char値を書き込む相対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putChar​(int index, char value)
    char値を書き込む絶対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putDouble​(double value)
    double値を書き込む相対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putDouble​(int index, double value)
    double値を書き込む絶対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putFloat​(float value)
    float値を書き込む相対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putFloat​(int index, float value)
    float値を書き込む絶対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putInt​(int value)
    int値を書き込む相対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putInt​(int index, int value)
    int値を書き込む絶対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putLong​(int index, long value)
    long値を書き込む絶対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putLong​(long value)
    long値を書き込む相対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putShort​(int index, short value)
    short値を書き込む絶対putメソッドです  (オプションの操作)
    abstract ByteBuffer ByteBuffer.putShort​(short value)
    short値を書き込む相対putメソッドです  (オプションの操作)
    ByteBuffer ByteBuffer.reset()
    バッファの位置を以前にマークした位置に戻します。
    ByteBuffer ByteBuffer.rewind()
    このバッファをリワインド(巻き戻し)します。
    abstract ByteBuffer ByteBuffer.slice()
    このバッファの共有のサブシーケンスを内容とする新しいbyteバッファを作成します。
    abstract ByteBuffer ByteBuffer.slice​(int index, int length)
    このバッファの共有のサブシーケンスを内容とする新しいbyteバッファを作成します。
    static ByteBuffer ByteBuffer.wrap​(byte[] array)
    byte配列をバッファにラップします。
    static ByteBuffer ByteBuffer.wrap​(byte[] array, int offset, int length)
    byte配列をバッファにラップします。
    ByteBuffer型のパラメータを持つjava.nioのメソッド 
    修飾子と型 メソッド 説明
    int ByteBuffer.compareTo​(ByteBuffer that)
    このバッファを別のバッファと比較します。
    int ByteBuffer.mismatch​(ByteBuffer that)
    このバッファと指定されたバッファの最初の不一致の相対索引を検索して戻します。
    ByteBuffer ByteBuffer.put​(ByteBuffer src)
    相対一括putメソッドです  (オプションの操作)
  • java.nio.channelsでのByteBufferの使用

    ByteBuffer型のパラメータを持つjava.nio.channelsのメソッド 
    修飾子と型 メソッド 説明
    Future<Integer> AsynchronousByteChannel.read​(ByteBuffer dst)
    このチャネルのバイト・シーケンスを指定のバッファに読み込みます。
    <A> void AsynchronousByteChannel.read​(ByteBuffer dst, A attachment, CompletionHandler<Integer,​? super A> handler)
    このチャネルのバイト・シーケンスを指定のバッファに読み込みます。
    abstract Future<Integer> AsynchronousFileChannel.read​(ByteBuffer dst, long position)
    このチャネルのバイト・シーケンスを、指定されたファイル位置からバッファに読み込みます。
    abstract <A> void AsynchronousFileChannel.read​(ByteBuffer dst, long position, A attachment, CompletionHandler<Integer,​? super A> handler)
    このチャネルのバイト・シーケンスを、指定されたファイル位置からバッファに読み込みます。
    abstract Future<Integer> AsynchronousSocketChannel.read​(ByteBuffer dst)  
    abstract <A> void AsynchronousSocketChannel.read​(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,​? super A> handler)
    このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスに読み込みます。
    abstract <A> void AsynchronousSocketChannel.read​(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,​? super A> handler)
    このチャネルのバイト・シーケンスを指定のバッファに読み込みます。
    <A> void AsynchronousSocketChannel.read​(ByteBuffer dst, A attachment, CompletionHandler<Integer,​? super A> handler)  
    abstract int DatagramChannel.read​(ByteBuffer dst)
    このチャネルからデータグラムを読み込みます。
    long DatagramChannel.read​(ByteBuffer[] dsts)
    このチャネルからデータグラムを読み込みます。
    abstract long DatagramChannel.read​(ByteBuffer[] dsts, int offset, int length)
    このチャネルからデータグラムを読み込みます。
    abstract int FileChannel.read​(ByteBuffer dst)
    このチャネルのバイト・シーケンスを指定のバッファに読み込みます。
    long FileChannel.read​(ByteBuffer[] dsts)
    このチャネルのバイト・シーケンスを指定されたバッファに読み込みます。
    abstract long FileChannel.read​(ByteBuffer[] dsts, int offset, int length)
    このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスに読み込みます。
    abstract int FileChannel.read​(ByteBuffer dst, long position)
    このチャネルのバイト・シーケンスを、指定されたファイル位置からバッファに読み込みます。
    int ReadableByteChannel.read​(ByteBuffer dst)
    このチャネルのバイト・シーケンスを指定のバッファに読み込みます。
    long ScatteringByteChannel.read​(ByteBuffer[] dsts)
    このチャネルのバイト・シーケンスを指定されたバッファに読み込みます。
    long ScatteringByteChannel.read​(ByteBuffer[] dsts, int offset, int length)
    このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスに読み込みます。
    int SeekableByteChannel.read​(ByteBuffer dst)
    このチャネルのバイト・シーケンスを指定のバッファに読み込みます。
    abstract int SocketChannel.read​(ByteBuffer dst)  
    long SocketChannel.read​(ByteBuffer[] dsts)  
    abstract long SocketChannel.read​(ByteBuffer[] dsts, int offset, int length)  
    abstract SocketAddress DatagramChannel.receive​(ByteBuffer dst)
    このチャネルからデータグラムを受信します。
    abstract int DatagramChannel.send​(ByteBuffer src, SocketAddress target)
    このチャネルからデータグラムを送信します。
    Future<Integer> AsynchronousByteChannel.write​(ByteBuffer src)
    このチャネルのバイト・シーケンスを指定のバッファから書き出します。
    <A> void AsynchronousByteChannel.write​(ByteBuffer src, A attachment, CompletionHandler<Integer,​? super A> handler)
    このチャネルのバイト・シーケンスを指定のバッファから書き出します。
    abstract Future<Integer> AsynchronousFileChannel.write​(ByteBuffer src, long position)
    指定されたバッファのバイト・シーケンスをこのチャネルの指定されたファイル位置に書き込みます。
    abstract <A> void AsynchronousFileChannel.write​(ByteBuffer src, long position, A attachment, CompletionHandler<Integer,​? super A> handler)
    指定されたバッファのバイト・シーケンスをこのチャネルの指定されたファイル位置に書き込みます。
    abstract Future<Integer> AsynchronousSocketChannel.write​(ByteBuffer src)  
    abstract <A> void AsynchronousSocketChannel.write​(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,​? super A> handler)
    このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスから書き出します。
    abstract <A> void AsynchronousSocketChannel.write​(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,​? super A> handler)
    このチャネルのバイト・シーケンスを指定のバッファから書き出します。
    <A> void AsynchronousSocketChannel.write​(ByteBuffer src, A attachment, CompletionHandler<Integer,​? super A> handler)  
    abstract int DatagramChannel.write​(ByteBuffer src)
    このチャネルへデータグラムを書き込みます。
    long DatagramChannel.write​(ByteBuffer[] srcs)
    このチャネルへデータグラムを書き込みます。
    abstract long DatagramChannel.write​(ByteBuffer[] srcs, int offset, int length)
    このチャネルへデータグラムを書き込みます。
    abstract int FileChannel.write​(ByteBuffer src)
    このチャネルのバイト・シーケンスを指定のバッファから書き出します。
    long FileChannel.write​(ByteBuffer[] srcs)
    このチャネルのバイト・シーケンスを指定されたバッファから書き出します。
    abstract long FileChannel.write​(ByteBuffer[] srcs, int offset, int length)
    このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスから書き出します。
    abstract int FileChannel.write​(ByteBuffer src, long position)
    指定されたバッファのバイト・シーケンスをこのチャネルの指定されたファイル位置に書き込みます。
    long GatheringByteChannel.write​(ByteBuffer[] srcs)
    このチャネルのバイト・シーケンスを指定されたバッファから書き出します。
    long GatheringByteChannel.write​(ByteBuffer[] srcs, int offset, int length)
    このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスから書き出します。
    int SeekableByteChannel.write​(ByteBuffer src)
    このチャネルのバイト・シーケンスを指定のバッファから書き出します。
    abstract int SocketChannel.write​(ByteBuffer src)  
    long SocketChannel.write​(ByteBuffer[] srcs)  
    abstract long SocketChannel.write​(ByteBuffer[] srcs, int offset, int length)  
    int WritableByteChannel.write​(ByteBuffer src)
    このチャネルのバイト・シーケンスを指定のバッファから書き出します。
  • java.nio.charsetでのByteBufferの使用

    ByteBufferを返すjava.nio.charsetのメソッド 
    修飾子と型 メソッド 説明
    ByteBuffer Charset.encode​(String str)
    文字列をこの文字セットで表現されたバイトにエンコードする簡易メソッドです。
    ByteBuffer Charset.encode​(CharBuffer cb)
    Unicode文字をこの文字セットで表現されたバイトにエンコードする簡易メソッドです。
    ByteBuffer CharsetEncoder.encode​(CharBuffer in)
    単一の入力文字バッファのコンテンツを新しく割り当てられたbyteバッファ内にエンコードする簡易メソッドです。
    ByteBuffer型のパラメータを持つjava.nio.charsetのメソッド 
    修飾子と型 メソッド 説明
    CharBuffer Charset.decode​(ByteBuffer bb)
    この文字セットで表現されたバイトをUnicode文字にデコードする簡易メソッドです。
    CharBuffer CharsetDecoder.decode​(ByteBuffer in)
    単一の入力byteバッファのコンテンツを新しく割り当てられた文字バッファ内にデコードする簡易メソッドです。
    CoderResult CharsetDecoder.decode​(ByteBuffer in, CharBuffer out, boolean endOfInput)
    指定された入力バッファ内のバイトを最大限デコードし、指定された出力バッファに結果を書き込みます。
    protected abstract CoderResult CharsetDecoder.decodeLoop​(ByteBuffer in, CharBuffer out)
    1個以上のバイトをデコードし、1個以上の文字へデコードします。
    CoderResult CharsetEncoder.encode​(CharBuffer in, ByteBuffer out, boolean endOfInput)
    指定された入力バッファ内の文字を最大限エンコードし、指定された出力バッファに結果を書き込みます。
    protected abstract CoderResult CharsetEncoder.encodeLoop​(CharBuffer in, ByteBuffer out)
    1個以上の文字1個以上のバイトへエンコードします。
    CoderResult CharsetEncoder.flush​(ByteBuffer out)
    このエンコーダをフラッシュします。
    protected CoderResult CharsetEncoder.implFlush​(ByteBuffer out)
    このエンコーダをフラッシュします。
  • java.nio.file.attributeでのByteBufferの使用

    ByteBuffer型のパラメータを持つjava.nio.file.attributeのメソッド 
    修飾子と型 メソッド 説明
    int UserDefinedFileAttributeView.read​(String name, ByteBuffer dst)
    ユーザー定義属性の値をバッファに読み込みます。
    int UserDefinedFileAttributeView.write​(String name, ByteBuffer src)
    ユーザー定義属性の値をバッファから書き出します。
  • java.securityでのByteBufferの使用

    ByteBuffer型のパラメータを持つjava.securityのメソッド 
    修飾子と型 メソッド 説明
    protected Class<?> SecureClassLoader.defineClass​(String name, ByteBuffer b, CodeSource cs)
    オプションのCodeSourceを使って、ByteBufferをクラスClassのインスタンスに変換します。
    protected void MessageDigestSpi.engineUpdate​(ByteBuffer input)
    指定されたByteBufferを使用してダイジェストを更新します。
    protected void SignatureSpi.engineUpdate​(ByteBuffer input)
    署名または検証するデータを、指定されたByteBufferを使用して更新します。
    void MessageDigest.update​(ByteBuffer input)
    指定されたByteBufferを使用してダイジェストを更新します。
    void Signature.update​(ByteBuffer data)
    署名または検証するデータを、指定されたByteBufferを使用して更新します。
  • java.utilでのByteBufferの使用

    ByteBufferを返すjava.utilのメソッド 
    修飾子と型 メソッド 説明
    ByteBuffer Base64.Decoder.decode​(ByteBuffer buffer)
    Base64エンコーディング方式を使用して入力byteバッファからすべてのバイトをデコードし、結果を新しく割り当てられたByteBufferに書き込みます。
    ByteBuffer Base64.Encoder.encode​(ByteBuffer buffer)
    Base64エンコーディング方式を使用して、指定されたByteBufferからの残りのすべてのバイトを新しく割り当てられたByteBufferにエンコードします。
    ByteBuffer型のパラメータを持つjava.utilのメソッド 
    修飾子と型 メソッド 説明
    ByteBuffer Base64.Decoder.decode​(ByteBuffer buffer)
    Base64エンコーディング方式を使用して入力byteバッファからすべてのバイトをデコードし、結果を新しく割り当てられたByteBufferに書き込みます。
    ByteBuffer Base64.Encoder.encode​(ByteBuffer buffer)
    Base64エンコーディング方式を使用して、指定されたByteBufferからの残りのすべてのバイトを新しく割り当てられたByteBufferにエンコードします。
    static BitSet BitSet.valueOf​(ByteBuffer bb)
    指定されたbyteバッファ内の、その位置から上限までのすべてのビットを含む新しいビット・セットを返します。
  • java.util.zipでのByteBufferの使用

    ByteBuffer型のパラメータを持つjava.util.zipのメソッド 
    修飾子と型 メソッド 説明
    int Deflater.deflate​(ByteBuffer output)
    入力データを圧縮し、指定されたバッファに圧縮されたデータを挿入します。
    int Deflater.deflate​(ByteBuffer output, int flush)
    入力データを圧縮し、指定されたバッファに圧縮されたデータを挿入します。
    int Inflater.inflate​(ByteBuffer output)
    指定されたバッファにバイトを圧縮解除します。
    void Deflater.setDictionary​(ByteBuffer dictionary)
    圧縮のためのプリセット・ディクショナリを設定します。
    void Inflater.setDictionary​(ByteBuffer dictionary)
    リセット・ディクショナリを指定されたバッファのバイトに設定します。
    void Deflater.setInput​(ByteBuffer input)
    圧縮のための入力データを設定します。
    void Inflater.setInput​(ByteBuffer input)
    圧縮解除のための入力データを設定します。
    void Adler32.update​(ByteBuffer buffer)
    チェックサムを指定されたバッファからのバイト数で更新します。
    default void Checksum.update​(ByteBuffer buffer)
    現在のチェックサムを指定されたバッファのバイトで更新します。
    void CRC32.update​(ByteBuffer buffer)
    指定されたバッファからのバイトでCRC-32チェックサムを更新します。
    void CRC32C.update​(ByteBuffer buffer)
    CRC-32Cチェックサムを、指定されたバッファからのバイトで更新します。
  • javax.cryptoでのByteBufferの使用

    ByteBuffer型のパラメータを持つjavax.cryptoのメソッド 
    修飾子と型 メソッド 説明
    int Cipher.doFinal​(ByteBuffer input, ByteBuffer output)
    単一の部分から成る操作でデータを暗号化または復号化するか、複数の部分から成る操作を終了します。
    protected int CipherSpi.engineDoFinal​(ByteBuffer input, ByteBuffer output)
    単一の部分から成る操作でデータを暗号化または復号化するか、複数の部分から成る操作を終了します。
    protected int CipherSpi.engineUpdate​(ByteBuffer input, ByteBuffer output)
    複数の部分から成る暗号化または復号化操作(この暗号の初期化方法により異なる)を継続し、別のデータ部分を処理します。
    protected void MacSpi.engineUpdate​(ByteBuffer input)
    ByteBuffer input内のinput.position()から始まるinput.remaining()バイトを処理します。
    protected void CipherSpi.engineUpdateAAD​(ByteBuffer src)
    AAD (Additional Authentication Data)のマルチパート更新を継続します。
    int Cipher.update​(ByteBuffer input, ByteBuffer output)
    複数の部分から成る暗号化または復号化操作(この暗号の初期化方法により異なる)を継続し、別のデータ部分を処理します。
    void Mac.update​(ByteBuffer input)
    ByteBuffer input内のinput.position()から始まるinput.remaining()バイトを処理します。
    void Cipher.updateAAD​(ByteBuffer src)
    AAD (Additional Authentication Data)のマルチパート更新を継続します。
  • javax.net.sslでのByteBufferの使用

    ByteBuffer型のパラメータを持つjavax.net.sslのメソッド 
    修飾子と型 メソッド 説明
    SSLEngineResult SSLEngine.unwrap​(ByteBuffer src, ByteBuffer dst)
    SSL/TLS/DTLSネットワーク・データを平文アプリケーション・データ・バッファにデコードしようとします。
    SSLEngineResult SSLEngine.unwrap​(ByteBuffer src, ByteBuffer[] dsts)
    SSL/TLS/DTLSネットワーク・データを一連の平文アプリケーション・データ・バッファにデコードしようとします。
    abstract SSLEngineResult SSLEngine.unwrap​(ByteBuffer src, ByteBuffer[] dsts, int offset, int length)
    SSL/TLS/DTLSネットワーク・データをplaintextアプリケーション・データ・バッファのサブシーケンスにデコードしようとします。
    abstract SSLEngineResult SSLEngine.wrap​(ByteBuffer[] srcs, int offset, int length, ByteBuffer dst)
    データ・バッファのサブシーケンスから平文バイトをSSL/TLS/DTLSネットワーク・データにエンコードしようとします。
    SSLEngineResult SSLEngine.wrap​(ByteBuffer[] srcs, ByteBuffer dst)
    プレーンテキスト・バイトを一連のデータ・バッファからSSL/TLS/DTLSネットワーク・データにエンコードしようとします。
    SSLEngineResult SSLEngine.wrap​(ByteBuffer src, ByteBuffer dst)
    平文アプリケーション・データのバッファをSSL/TLS/DTLSネットワーク・データにエンコードしようとします。
  • javax.smartcardioでのByteBufferの使用

    ByteBufferのパラメータを持つjavax.smartcardioのメソッド
    修飾子と型 メソッド 説明
    abstract int CardChannel.transmit​(ByteBuffer command, ByteBuffer response)
    コマンドByteBufferに格納されたコマンドAPDUを送信し、応答ByteBufferにレスポンスAPDUを受信します。
    ByteBufferのパラメータを持つjavax.smartcardioのコンストラクタ
    コンストラクタ 説明
    CommandAPDU​(ByteBuffer apdu)
    APDUの内容全体(ヘッダーと本体)を含むByteBufferからCommandAPDUを作成します。
  • jdk.nashorn.api.scriptingでのByteBufferの使用

    ByteBufferのパラメータを持つjdk.nashorn.api.scriptingのメソッド
    修飾子と型 メソッド 説明
    void ScriptObjectMirror.setIndexedPropertiesToExternalArrayData​(ByteBuffer buf)
    削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。
    Nashorn拡張: setIndexedPropertiesToExternalArrayData。