org.annotation.wordfreak
Class AnnotationSource

java.lang.Object
  extended byorg.annotation.wordfreak.AnnotationSource
Direct Known Subclasses:
TextAnnotationSource

public abstract class AnnotationSource
extends java.lang.Object

Represents the sourse data for an annotated file.


Field Summary
protected  byte[] bytes
           
protected  java.lang.String encoding
           
protected  int offset
           
 
Constructor Summary
AnnotationSource()
           
 
Method Summary
 int getByteLength()
           
 byte[] getBytes()
           
 byte[] getBytes(int s)
           
 byte[] getBytes(int s, int l)
           
abstract  int getBytesPerUnit()
           
 java.lang.String getEncoding()
           
 int getOffset()
           
 java.lang.String getText()
           
 java.lang.String getText(int s, int e)
           
 int getUnitLength()
           
 byte[] getUnits()
           
 byte[] getUnits(int s)
           
 byte[] getUnits(int s, int l)
           
 void setBytes(byte[] b)
           
 void setBytes(byte[] b, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offset

protected int offset

bytes

protected byte[] bytes

encoding

protected java.lang.String encoding
Constructor Detail

AnnotationSource

public AnnotationSource()
Method Detail

getBytesPerUnit

public abstract int getBytesPerUnit()

getEncoding

public java.lang.String getEncoding()

getBytes

public byte[] getBytes()

getBytes

public byte[] getBytes(int s)

getBytes

public byte[] getBytes(int s,
                       int l)

getUnits

public byte[] getUnits()

getUnits

public byte[] getUnits(int s)

getUnits

public byte[] getUnits(int s,
                       int l)

setBytes

public void setBytes(byte[] b)

setBytes

public void setBytes(byte[] b,
                     int offset,
                     int length)

getText

public java.lang.String getText()

getText

public java.lang.String getText(int s,
                                int e)

getByteLength

public int getByteLength()

getUnitLength

public int getUnitLength()

getOffset

public int getOffset()


Copyright © 2004 Thomas Morton and Jeremy LaCivita. All Rights Reserved.