import jalview.util.MessageManager;
-import java.io.*;
+import java.io.IOException;
+import java.io.RandomAccessFile;
-import com.stevesoft.pat.*;
+import com.stevesoft.pat.BasicStringBufferLike;
+import com.stevesoft.pat.Regex;
+import com.stevesoft.pat.StringLike;
/**
* Provides a wrapper for a RandomAccessFile so that it can be searched by
this.raf = raf;
}
+ @Override
public char charAt(int i)
{
if (i >= i0 && i < iend)
{
}
- throw new ArrayIndexOutOfBoundsException(MessageManager.formatMessage("exception.out_of_bounds_for_file", new String[]{
- Integer.valueOf(i).toString(),
- Integer.valueOf(i0).toString(),
- Integer.valueOf(iend).toString()
- }));
+ throw new ArrayIndexOutOfBoundsException(MessageManager.formatMessage(
+ "exception.out_of_bounds_for_file", new String[] {
+ Integer.valueOf(i).toString(),
+ Integer.valueOf(i0).toString(),
+ Integer.valueOf(iend).toString() }));
}
+ @Override
public String toString()
{
throw new Error(MessageManager.getString("error.not_implemented"));
}
+ @Override
public int length()
{
try
}
}
+ @Override
public String substring(int i1, int i2)
{
StringBuffer sb = new StringBuffer();
return sb.toString();
}
+ @Override
public Object unwrap()
{
return raf;
}
+ /**
+ * @j2sIgnore
+ *
+ * @param files
+ * @throws IOException
+ */
public static void main(String[] files) throws IOException
{
for (int i = 0; i < files.length; i++)
}
}
+ @Override
public BasicStringBufferLike newStringBufferLike()
{
return new StringBufferWrap();
}
+ @Override
public int indexOf(char c)
{
for (int i = 0; i < length(); i++)