Microsoft SDK for Java

DataStream.canSeek

Determines whether this stream supports seeking.

Syntax

public boolean canSeek()

Return Value

Returns true if the stream supports seeking; otherwise, returns false.

Exceptions

IOException thrown if an I/O error occurs.

Remarks

This method implements the IByteStream.canSeek method. This default method always returns true, but a subclass can override this method to provide the appropriate functionality.

See Also   write

© 1999 Microsoft Corporation. All rights reserved. Terms of use.