tcl.lang.channel
Class SeekableChannel
java.lang.Object
tcl.lang.channel.Channel
tcl.lang.channel.SeekableChannel
- Direct Known Subclasses:
- FileChannel
public abstract class SeekableChannel
- extends Channel
Subclass of Channel that supports seeking
- Author:
- Dan Bodoh
Fields inherited from class tcl.lang.channel.Channel |
blocking, buffering, bufferSize, encoding, eofInputFilter, eofOutputFilter, eolInputFilter, eolOutputFilter, finalInputStream, finalReader, firstOutputStream, firstWriter, inputBuffer, inputEofChar, inputTranslation, markableInputStream, mode, nonBlockingOutputStream, outputBuffer, outputEofChar, outputTranslation, rawInputStream, rawOutputStream, READ_OWNERSHIP, refCount, unicodeDecoder, unicodeEncoder, WRITE_OWNERSHIP |
Method Summary |
void |
seek(Interp interp,
long offset,
int mode)
Move the current file pointer. |
long |
tell()
|
Methods inherited from class tcl.lang.channel.Channel |
checkRead, checkWrite, close, eof, flush, getBlocking, getBuffering, getBufferSize, getChanName, getEncoding, getInputEofChar, getInputStream, getInputTranslation, getOutputEofChar, getOutputStream, getOutputTranslation, initInput, initOutput, isBlocked, isClosed, isReadOnly, isReadWrite, isWriteOnly, read, setBlocking, setBuffering, setBufferSize, setEncoding, setInputEofChar, setInputTranslation, setOutputEofChar, setOutputTranslation, setOwnership, setOwnership, waitForOwnership, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SeekableChannel
public SeekableChannel()
seek
public void seek(Interp interp,
long offset,
int mode)
throws IOException,
TclException
- Move the current file pointer.
- Overrides:
seek
in class Channel
- Parameters:
interp
- currrent interpreter.offset
- The number of bytes to move the file pointer.mode
- where to begin incrementing the file pointer; beginning,
current, end.
- Throws:
TclException
- if channel does not support seek
IOException
tell
public long tell()
throws IOException
- Overrides:
tell
in class Channel
- Returns:
- the current file position.
- Throws:
IOException
Copyright © 2015. All rights reserved.