谁能帮我分析一下这个程序?十分感谢
这段程序的作用是什么?急切,大家帮分析分析,感激不尽!
public static Object method(String strMain,int intMaxLength)
{
Vector vector = new Vector();
String strText = " ";
byte[] arrByte = null;
int intStartIndex = 0;
int intEndIndex = 0;
int index = 0;
int count = 0;
String[] arrReturn = null;
if(intMaxLength <= 1)
{
System.err.println( "error:intMaxLength <= 1 ");
return null;
}
if(strMain == null) return new String[0];
if(strMain.trim().equals( " ")) return new String[]{ " "};
arrByte = strMain.getBytes();
intEndIndex = 0;
while(true)
{
intStartIndex = int EndIndex;
intEndIndex = intStartIndex = intMaxLength;
if(intStartIndex > = arrByte.length) break;
if(intEndIndex> arrByte.length)
{
intEndIndex = arrByte.length;
strText = new String(arrByte,intStartIndex,
intEndIndex-intStartIndex);
vector.add(strText);
break;
}
count = 0;
for(index = intStartIndex;index < intEndIndex;index++)
{
if(arrByte[index] <0) count++;
}
if(count%2 != 0) intEndIndex--;
strText = new String(arrByte,intStartIndex-intStartIndex);
vector.add(strText);
}
arrReturn = new String[vector.size()];