org.apache.cocoon.util
Class ByteRange

java.lang.Object
  extended by org.apache.cocoon.util.ByteRange

public final class ByteRange
extends Object

Version:
CVS $Id: ByteRange.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Stuart Roebuck

Constructor Summary
ByteRange(long start, long end)
           
ByteRange(String string)
           
 
Method Summary
 long getEnd()
           
 long getStart()
           
 ByteRange intersection(ByteRange range)
           
 long length()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteRange

public ByteRange(long start,
                 long end)

ByteRange

public ByteRange(String string)
          throws NumberFormatException
Throws:
NumberFormatException
Method Detail

getStart

public long getStart()

getEnd

public long getEnd()

length

public long length()

intersection

public ByteRange intersection(ByteRange range)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.