Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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