2 package org.smallfoot.wwn;
4 import java.math.BigInteger;
45 else if (wwn.matches(
"5006016.*"))
58 String res = super.toString();
59 if (null == res) res =
"";
67 BigInteger serDirPort =
wwn.subtract(
wwn.shiftRight(36).shiftLeft(36));
70 BigInteger serPort[] = serDirPort.divideAndRemainder(
new BigInteger(
"100000000",16));
73 switch (serPort[0].intValue() / 8)
84 return res + String.format(
"CL-%08x-SP%c%d",serPort[1].intValue(),SP,serPort[0].intValue() % 8);