🤖 AIによる機械翻訳(非公式) — これは OpenCV 5.0.0 公式リファレンス(英語)を AI (Claude) で自動翻訳したものです。訳に誤りを含む場合があります。正確な情報は 公式英語版(原文) を参照してください。

クラス IStreamReader


  • public class IStreamReader extends java.lang.Object
    データストリーム読み込みインターフェース
    • フィールドの要約

      フィールド
      Modifier and Type Field Description
      protected long nativeObj  
    • コンストラクタの要約

      コンストラクタ
      Modifier Constructor Description
      protected IStreamReader()
      Constructor of streaming callback object with abstract 'read' and 'seek' methods that should be implemented in Java code.
      NOTE: Implemented callbacks should be called from the creation thread to avoid JNI performance degradation
      protected IStreamReader​(long addr)  
    • フィールドの詳細

      • nativeObj

        protected final long nativeObj
    • コンストラクタの詳細

      • IStreamReader

        protected IStreamReader​(long addr)
      • IStreamReader

        protected IStreamReader()
        Constructor of streaming callback object with abstract 'read' and 'seek' methods that should be implemented in Java code.
        NOTE: Implemented callbacks should be called from the creation thread to avoid JNI performance degradation
    • メソッドの詳細

      • getNativeObjAddr

        public long getNativeObjAddr()
      • __fromPtr__

        public static IStreamReader __fromPtr__​(long addr)
      • read

        public long read​(byte[] buffer,
                         long size)
        Read bytes from stream
        引数:
        buffer - 少なくとも size バイトの、すでに確保済みのバッファ
        size - 読み込む最大バイト数
        戻り値:
        実際に読み取ったバイト数
      • seek

        public long seek​(long offset,
                         int origin)
        Sets the stream position
        引数:
        offset - シーク offset
        origin - SEEK_SET / SEEK_END / SEEK_CUR SEE: fseek
        戻り値:
        自動生成