/[classpath]/classpath/java/nio/ShortBuffer.java
ViewVC logotype

Diff of /classpath/java/nio/ShortBuffer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mkoch, Sun May 18 11:42:19 2003 UTC revision 1.10 by mkoch, Sun May 18 12:00:00 2003 UTC
# Line 296  public abstract class ShortBuffer extend Line 296  public abstract class ShortBuffer extend
296     * Returns the byte order of this buffer.     * Returns the byte order of this buffer.
297     */     */
298    public abstract ByteOrder order ();    public abstract ByteOrder order ();
299    public abstract short get();  
300    public abstract java.nio. ShortBuffer put(short b);    /**
301    public abstract short get(int index);     * Reads the <code>short</code> at this buffer's current position,
302    public abstract java.nio. ShortBuffer put(int index, short b);     * and then increments the position.
303    public abstract ShortBuffer compact();     *
304    public abstract boolean isDirect();     * @exception BufferUnderflowException If there are no remaining
305    public abstract ShortBuffer slice();     * <code>shorts</code> in this buffer.
306    public abstract ShortBuffer duplicate();     */
307    public abstract ShortBuffer asReadOnlyBuffer();    public abstract short get ();
308    
309      /**
310       * Writes the <code>short</code> at this buffer's current position,
311       * and then increments the position.
312       *
313       * @exception BufferOverflowException If there no remaining
314       * <code>shorts</code> in this buffer.
315       * @exception ReadOnlyBufferException If this buffer is read-only.
316       */
317      public abstract ShortBuffer put (short b);
318    
319      /**
320       * Absolute get method.
321       *
322       * @exception IndexOutOfBoundsException If index is negative or not smaller
323       * than the buffer's limit.
324       */
325      public abstract short get (int index);
326      
327      /**
328       * Absolute put method.
329       *
330       * @exception IndexOutOfBoundsException If index is negative or not smaller
331       * than the buffer's limit.
332       * @exception ReadOnlyBufferException If this buffer is read-only.
333       */
334      public abstract ShortBuffer put (int index, short b);
335    
336      /**
337       * Compacts this buffer.
338       *
339       * @exception ReadOnlyBufferException If this buffer is read-only.
340       */
341      public abstract ShortBuffer compact ();
342    
343      /**
344       * Tells wether or not this buffer is direct.
345       */
346      public abstract boolean isDirect ();
347    
348      /**
349       * Creates a new <code>ShortBuffer</code> whose content is a shared
350       * subsequence of this buffer's content.
351       */
352      public abstract ShortBuffer slice ();
353    
354      /**
355       * Creates a new <code>ShortBuffer</code> that shares this buffer's
356       * content.
357       */
358      public abstract ShortBuffer duplicate ();
359    
360      /**
361       * Creates a new read-only <code>ShortBuffer</code> that shares this
362       * buffer's content.
363       */
364      public abstract ShortBuffer asReadOnlyBuffer ();
365  }  }

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26