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

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.FirstPartRange

public class FirstPartRange
extends AbstractRange

Take the first bytes of the object until -- ie not including -- position 'until'


Field Summary
 
Fields inherited from class org.javaswift.joss.headers.object.range.AbstractRange
length, offset, RANGE_HEADER_NAME, RANGE_HEADER_VALUE_PREFIX
 
Constructor Summary
FirstPartRange(int until)
           
 
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

FirstPartRange

public FirstPartRange(int until)
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.