2 package org.smallfoot.wwn;
4 import java.math.BigInteger;
41 else if (wwn.matches(
"2[12][0-9a-fA-F][0-9a-fA-F]000b08.*"))
54 String res = super.toString();
55 if (null == res) res =
"";
59 BigInteger serDirPort[] =
wwn.divideAndRemainder(
new BigInteger(
"1000000",16));
62 BigInteger twoContZeroZero[] = serDirPort[0].divideAndRemainder(
new BigInteger(
"100000000",16));
64 BigInteger twoCont[] = twoContZeroZero[0].divideAndRemainder(
new BigInteger(
"10",16));
67 BigInteger serialPort[] = serDirPort[1].divideAndRemainder(
new BigInteger(
"10",16));
70 return res + String.format(
"Axiom-%05X-c%sp%X",serialPort[0].intValue(), twoCont[1].intValue()-1, serialPort[1].intValue());