Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.hwpf.model
Class SinglentonTextPiece

    java.lang.Object
      org.apache.poi.hwpf.model.PropertyNode
          org.apache.poi.hwpf.model.TextPiece
              org.apache.poi.hwpf.model.SinglentonTextPiece

All Implemented Interfaces:
  java.lang.Cloneable, java.lang.Comparable

    public class SinglentonTextPiece

extends TextPiece

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.poi.hwpf.model.PropertyNode
`PropertyNode.EndComparator, PropertyNode.StartComparator`

Constructor Summary
`SinglentonTextPiece(java.lang.StringBuffer buffer)`

Method Summary
`int` | `bytesLength()` Returns the length, in bytes
`int` | `characterLength()` Returns the length, in characters
`int` | `getCP()` Returns the character position we start at.
`int` | `getEnd()`
`int` | `getStart()`
`java.lang.String` | `toString()`

Methods inherited from class org.apache.poi.hwpf.model.TextPiece
`adjustForDelete, equals, getPieceDescriptor, getRawBytes, getStringBuffer, isUnicode, substring`

Methods inherited from class org.apache.poi.hwpf.model.PropertyNode
`clone, compareTo, hashCode, setEnd, setStart`

Methods inherited from class java.lang.Object
`getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### SinglentonTextPiece

    public SinglentonTextPiece(java.lang.StringBuffer buffer)
                        throws java.io.IOException

Throws:
  `java.io.IOException`

Method Detail

### bytesLength

    public int bytesLength()

  Description copied from class: `TextPiece`
  Returns the length, in bytes

  Overrides:
    `bytesLength` in class `TextPiece`

### characterLength

    public int characterLength()

  Description copied from class: `TextPiece`
  Returns the length, in characters

  Overrides:
    `characterLength` in class `TextPiece`

### getCP

    public int getCP()

  Description copied from class: `TextPiece`
  Returns the character position we start at.

  Overrides:
    `getCP` in class `TextPiece`

### getEnd

    public int getEnd()

  Overrides:
    `getEnd` in class `PropertyNode`
  Returns:
    The offset of the end of this property's text.

### getStart

    public int getStart()

  Overrides:
    `getStart` in class `PropertyNode`
  Returns:
    The start offset of this property's text.

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `TextPiece`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD