⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageinputstream.java

📁 gcc的组建
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
  /**   * Reads a sequence of signed 8-bit integers into a   * <code>byte[]</code> array.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param b an array for storing the read values.   *   * @param offset the index of the first element in <code>b</code>   * that will hold read data.   *   * @param numBytes the number of bytes to read.   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numBytes</code> is negative, or if <code>offset +   * numBytes</code> exceeds <code>b.length</code>.   *   * @throws NullPointerException if <code>b</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readByte()   */  void readFully(byte[] b, int offset, int numBytes)    throws IOException;  /**   * Reads a sequence of signed 8-bit integers into a   * <code>byte[]</code> array.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param b an array for storing the read values.   *   * @throws NullPointerException if <code>b</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readByte()   * @see #readFully(byte[], int, int)   */  void readFully(byte[] b)    throws IOException;  /**   * Reads a sequence of signed 16-bit integers into a   * <code>short[]</code> array.  If necessary, values are converted   * from the stream&#x2019;s {@linkplain #getByteOrder() current byte   * order}.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param s an array for storing the read values.   *   * @param offset the index of the first element in <code>s</code>   * that will hold read data.   *   * @param numShorts the number of signed 16-bit integers to read   * (which is one half of the number of bytes).   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numShorts</code> is negative, or if <code>offset +   * numShorts</code> exceeds <code>s.length</code>.   *   * @throws NullPointerException if <code>s</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readShort()   */  void readFully(short[] s, int offset, int numShorts)    throws IOException;  /**   * Reads a sequence of unsigned 16-bit integers into a   * <code>char[]</code> array.  If necessary, values are converted   * from the stream&#x2019;s {@linkplain #getByteOrder() current byte   * order}.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param c an array for storing the read values.   *   * @param offset the index of the first element in <code>c</code>   * that will hold read data.   *   * @param numChars the number of unsigned 16-bit integers to read   * (which is one half of the number of bytes).   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numChars</code> is negative, or if <code>offset +   * numChars</code> exceeds <code>c.length</code>.   *   * @throws NullPointerException if <code>c</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readChar()   */  void readFully(char[] c, int offset, int numChars)    throws IOException;  /**   * Reads a sequence of signed 32-bit integers into a   * <code>long[]</code> array.  If necessary, values are converted   * from the stream&#x2019;s {@linkplain #getByteOrder() current byte   * order}.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param i an array for storing the read values.   *   * @param offset the index of the first element in <code>i</code>   * that will hold read data.   *   * @param numLongs the number of signed 32-bit integers to read   * (which is one fourth of the number of bytes).   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numInts</code> is negative, or if <code>offset +   * numInts</code> exceeds <code>i.length</code>.   *   * @throws NullPointerException if <code>i</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readInt()   */  void readFully(int[] i, int offset, int numInts)    throws IOException;  /**   * Reads a sequence of signed 64-bit integers into a   * <code>long[]</code> array.  If necessary, values are converted   * from the stream&#x2019;s {@linkplain #getByteOrder() current byte   * order}.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param l an array for storing the read values.   *   * @param offset the index of the first element in <code>l</code>   * that will hold read data.   *   * @param numLongs the number of signed 64-bit integers to read   * (which is one eight of the number of bytes).   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numLongs</code> is negative, or if <code>offset +   * numLongs</code> exceeds <code>l.length</code>.   *   * @throws NullPointerException if <code>l</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readLong()   */  void readFully(long[] l, int offset, int numLongs)    throws IOException;  /**   * Reads a sequence of IEEE 32-bit single-precision floating point   * numbers into a <code>float[]</code> array.  If necessary, values   * are converted from the stream&#x2019;s {@linkplain   * #getByteOrder() current byte order}.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param d an array for storing the read values.   *   * @param offset the index of the first element in <code>d</code>   * that will hold read data.   *   * @param numFloats the number of IEEE 32-bit single-precision   * floating point numbers to read (which is one fourth of the number   * of bytes).   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numFloats</code> is negative, or if <code>offset +   * numFloats</code> exceeds <code>f.length</code>.   *   * @throws NullPointerException if <code>f</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readFloat()   */  void readFully(float[] f, int offset, int numFloats)    throws IOException;  /**   * Reads a sequence of IEEE 64-bit double-precision floating point   * numbers into a <code>double[]</code> array.  If necessary, values   * are converted from the stream&#x2019;s {@linkplain   * #getByteOrder() current byte order}.   *   * <p>The {@linkplain #getBitOffset() bit offset} is set to zero   * before any data is read.   *    * @param d an array for storing the read values.   *   * @param offset the index of the first element in <code>d</code>   * that will hold read data.   *   * @param numDoubles the number of IEEE 64-bit double-precision   * floating point numbers to read (which is one eight of the number   * of bytes).   *   * @throws IndexOutOfBoundsException if <code>offset</code> or   * <code>numDoubles</code> is negative, or if <code>offset +   * numDoubles</code> exceeds <code>d.length</code>.   *   * @throws NullPointerException if <code>d</code> is   * <code>null</code>.   *   * @throws EOFException if the input stream ends before all content   * was read.   *   * @throws IOException if some general problem happens with   * accessing data.   *   * @see #readDouble()   */  void readFully(double[] d, int offset, int numDoubles)    throws IOException;  long getStreamPosition()    throws IOException;  int getBitOffset()    throws IOException;  void setBitOffset(int bitOffset)    throws IOException;  int readBit()    throws IOException;  long readBits(int numBits)    throws IOException;  long length()    throws IOException;  int skipBytes(int numBytes)    throws IOException;  long skipBytes(long numBytes)    throws IOException;  void seek(long pos)    throws IOException;  void mark();  void reset()    throws IOException;  void flushBefore(long pos)    throws IOException;  void flush()    throws IOException;  long getFlushedPosition();  boolean isCached();  boolean isCachedMemory();  boolean isCachedFile();  void close()    throws IOException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -