Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
非常に大きなサイズのバイト配列があります。BEGIN:VCARD OR END:VCARDなどの文字列が見つかるまで、逆方向に読みたいです。可能であれば、行ごとに配列にアクセスしたいです。
パフォーマンスがそれほど重要でない場合は、最初にバイト配列コンストラクター (new String(byte[] bytes)) を介して文字列を作成し、次に String.lastIndexOf(String str) を使用できます。指定された文字列が最後に出現した位置を示します。