org.javaswift.joss.headers.object.range
Class LastPartRange

java.lang.Object
  extended by org.javaswift.joss.headers.Header
      extended by org.javaswift.joss.headers.object.range.AbstractRange
          extended by org.javaswift.joss.headers.object.range.LastPartRange

public class LastPartRange
extends AbstractRange

Take the last bytes of the object with a length equal to 'lastBytes'


Field Summary
 
Fields inherited from class org.javaswift.joss.headers.object.range.AbstractRange
length, offset, RANGE_HEADER_NAME, RANGE_HEADER_VALUE_PREFIX
 
Constructor Summary
LastPartRange(int lastBytes)
           
 
Method Summary
 int getFrom(int byteArrayLength)
           
 int getTo(int byteArrayLength)
           
 
Methods inherited from class org.javaswift.joss.headers.object.range.AbstractRange
copy, getHeaderName, getHeaderValue
 
Methods inherited from class org.javaswift.joss.headers.Header
convertResponseHeader, getResponseHeadersStartingWith, headerNotEmpty, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LastPartRange

public LastPartRange(int lastBytes)
Method Detail

getFrom

public int getFrom(int byteArrayLength)
Specified by:
getFrom in class AbstractRange

getTo

public int getTo(int byteArrayLength)
Specified by:
getTo in class AbstractRange


Copyright © 2012-2014 42 BV. All Rights Reserved.