Unnamed
public text v1 · immutableprivate class CodeRange
{
byte[] from;
byte[] to;
String code;
public IpCountryRange( String line )
{
int startIdx, endIdx;
startIdx = 0;
endIdx = line.indexOf( ',', startIdx );
from = AddressUtils.parseIntIP( line.substring( startIdx, endIdx ) );
startIdx = endIdx + 1;
endIdx = line.indexOf( ',', startIdx );
to = AddressUtils.parseIntIP( line.substring( startIdx, endIdx ) );
startIdx = endIdx + 1;
String subCode = line.substring( startIdx );
code = subCode.intern();
}
}