Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

oracle.javatools.buffer
Class Util

java.lang.Object
  extended by oracle.javatools.buffer.Util

public final class Util
extends java.lang.Object

Buffer related utilities.

Since:
11.1.1

Method Summary
static LineMap lineMap(ReadTextBuffer textBuffer)
          Creates a line map for the specified text buffer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

lineMap

public static LineMap lineMap(ReadTextBuffer textBuffer)
Creates a line map for the specified text buffer.

This method can be used to obtain a LineMap for any ReadTextBuffer, in contrast to AbstractTextBuffer.getLineMap(), which is not available on ReadTextBuffer.

For compatibility reasons, the ReadTextBuffer interface cannot be modified to add a getLineMap() method.

Note that this method does not guarantee any caching behavior.

Parameters:
textBuffer - a text buffer.
Returns:
a line map for the buffer.
Throws:
java.lang.NullPointerException - if textBuffer is null.
Since:
11.1.1

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.4.0)

E13403-05

Copyright © 1997, 2011, Oracle. All rights reserved.