public abstract class IOPosition extends Object
Client usage:
InputOutput io = ...; // store current position of IO IOPosition.Position pos = IOPosition.currentPosition(io); ... // scroll to stored position pos.scrollTo();How to support
IOPosition
in own IOProvider
implementation:
InputOutput
provided by IOProvider
has to implement Lookup.Provider
IOPosition
and implement its abstract methods
IOPosition
to Lookup
provided by InputOutput
Modifier and Type | Class | Description |
---|---|---|
static interface |
IOPosition.Position |
Constructor | Description |
---|---|
IOPosition() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract IOPosition.Position |
currentPosition() |
Gets current position in IO
|
static IOPosition.Position |
currentPosition(InputOutput io) |
Gets current position (in number of chars) in IO
|
static boolean |
isSupported(InputOutput io) |
Checks whether this feature is supported for provided IO
|
public static IOPosition.Position currentPosition(InputOutput io)
io
- IO to operate onpublic static boolean isSupported(InputOutput io)
io
- IO to check onprotected abstract IOPosition.Position currentPosition()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.