Lines Matching refs:position

43  * a file. It has a current <i>position</i> within its file which can
44 * be both {@link #position() <i>queried</i>} and {@link #position(long)
61 * position in a file in a way that does not affect the channel's current
62 * position. </p></li>
87 * channel's position or can change its file's size may be in progress at any
90 * operations, in particular those that take an explicit position, may proceed
114 * method returned the channel. Changing the channel's position, whether
115 * explicitly or by reading or writing bytes, will change the file position of
140 * operation first advances the position to the end of the file and then writes
141 * the requested data. Whether the advancement of the position and the writing
183 * the position to the end of the file and then writes the requested
184 * data. Whether the advancement of the position and the writing of the
342 * <p> Bytes are read starting at this channel's current file position, and
343 * then the file position is updated with the number of bytes actually
353 * <p> Bytes are read starting at this channel's current file position, and
354 * then the file position is updated with the number of bytes actually
364 * <p> Bytes are read starting at this channel's current file position, and
365 * then the file position is updated with the number of bytes actually
376 * <p> Bytes are written starting at this channel's current file position
377 * unless the channel is in append mode, in which case the position is
379 * to accommodate the written bytes, and then the file position is updated
390 * <p> Bytes are written starting at this channel's current file position
391 * unless the channel is in append mode, in which case the position is
393 * to accommodate the written bytes, and then the file position is updated
404 * <p> Bytes are written starting at this channel's current file position
405 * unless the channel is in append mode, in which case the position is
407 * to accommodate the written bytes, and then the file position is updated
420 * Returns this channel's file position. </p>
422 * @return This channel's file position,
424 * from the beginning of the file to the current position
432 public abstract long position() throws IOException;
435 * Sets this channel's file position.
437 * <p> Setting the position to a value that is greater than the file's
439 * attempt to read bytes at such a position will immediately return an
441 * position will cause the file to be grown to accommodate the new bytes;
446 * The new position, a non-negative integer counting
455 * If the new position is negative
460 public abstract FileChannel position(long newPosition) throws IOException;
483 * position is greater than the given size then it is set to that size.
560 * the given <tt>position</tt> in this channel's file and write them to the
565 * <tt>count</tt> bytes starting at the given <tt>position</tt>, or if the
569 * <p> This method does not modify this channel's position. If the given
570 * position is greater than the file's current size then no bytes are
571 * transferred. If the target channel has a position then bytes are
572 * written starting at that position and then the position is incremented
580 * @param position
581 * The position within the file at which the transfer is to begin;
618 public abstract long transferTo(long position, long count,
628 * given <tt>position</tt>. An invocation of this method may or may not
636 * <p> This method does not modify this channel's position. If the given
637 * position is greater than the file's current size then no bytes are
638 * transferred. If the source channel has a position then bytes are read
639 * starting at that position and then the position is incremented by the
650 * @param position
651 * The position within the file at which the transfer is to begin;
686 long position, long count)
691 * starting at the given file position.
695 * given file position rather than at the channel's current position. This
696 * method does not modify this channel's position. If the given position
702 * @param position
703 * The file position at which the transfer is to begin;
707 * given position is greater than or equal to the file's current
711 * If the position is negative
732 public abstract int read(ByteBuffer dst, long position) throws IOException;
736 * starting at the given file position.
740 * the given file position rather than at the channel's current position.
741 * This method does not modify this channel's position. If the given
742 * position is greater than the file's current size then the file will be
749 * @param position
750 * The file position at which the transfer is to begin;
756 * If the position is negative
777 public abstract int write(ByteBuffer src, long position) throws IOException;
856 * returned by this method will have a position of zero and a limit and
886 * @param position
887 * The position within the file at which the mapped region
915 long position, long size)
938 * <p> The region specified by the <tt>position</tt> and <tt>size</tt>
959 * @param position
960 * The position at which the locked region is to start; must be
965 * <tt>position</tt>&nbsp;+&nbsp;<tt>size</tt> must be non-negative
1010 public abstract FileLock lock(long position, long size, boolean shared)
1065 * <p> The region specified by the <tt>position</tt> and <tt>size</tt>
1086 * @param position
1087 * The position at which the locked region is to start; must be
1092 * <tt>position</tt>&nbsp;+&nbsp;<tt>size</tt> must be non-negative
1121 public abstract FileLock tryLock(long position, long size, boolean shared)