nu.validator.htmlparser.impl
Class UTF16Buffer

java.lang.Object
  extended by nu.validator.htmlparser.impl.UTF16Buffer

public final class UTF16Buffer
extends Object


Field Summary
private  char[] buffer
           
private  int end
           
private  int start
           
 
Constructor Summary
UTF16Buffer(char[] buffer, int start, int end)
           
 
Method Summary
 void adjust(boolean lastWasCR)
           
 char[] getBuffer()
          Returns the buffer.
 int getEnd()
          Returns the end.
 int getStart()
          Returns the start.
 boolean hasMore()
           
 void setEnd(int end)
          Sets the end.
 void setStart(int start)
          Sets the start.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

private final char[] buffer

start

private int start

end

private int end
Constructor Detail

UTF16Buffer

public UTF16Buffer(char[] buffer,
                   int start,
                   int end)
Parameters:
buffer -
start -
end -
Method Detail

getStart

public int getStart()
Returns the start.

Returns:
the start

setStart

public void setStart(int start)
Sets the start.

Parameters:
start - the start to set

getBuffer

public char[] getBuffer()
Returns the buffer.

Returns:
the buffer

getEnd

public int getEnd()
Returns the end.

Returns:
the end

hasMore

public boolean hasMore()

adjust

public void adjust(boolean lastWasCR)

setEnd

public void setEnd(int end)
Sets the end.

Parameters:
end - the end to set