private void readToVector() throws IOException
{
InputStream is = this.getInputStreamFromFile();
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int c = 0;
int index = 0;
while ((c = is.read()) != -1)
{
if (c == '\n' || c == '\r')
{
String s = baos.toString();
int i = s.indexOf('=');
if (i != -1)
{
if (s.substring(0, i).endsWith(String.valueOf(index)))
{
indexVector.addElement(s.substring(i + 1).trim());
index++;
} else
{
throw new IOException("index error");
}
}
baos.reset();
} else
{
baos.write(c);
}
}
}