
nl.tweeenveertig.openstack.headers.object.range.FirstPartRange Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of joss Show documentation
Show all versions of joss Show documentation
Java Client library for OpenStack Storage (Swift)
package nl.tweeenveertig.openstack.headers.object.range;
/**
* Take the first bytes of the object until -- ie not including -- position 'until'
*/
public class FirstPartRange extends AbstractRange {
public FirstPartRange(int until) {
super(0, until);
}
@Override
public int getFrom(int byteArrayLength) {
return 0;
}
@Override
public int getTo(int byteArrayLength) {
return length;
}
}