X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2Fwrap%2FRandomAccessFileWrap.java;h=66a10147bdd40db9be4c92c8254ec6244531ec4d;hb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;hp=b4d38dcffa43c014bf84d85535fed0d9769cc962;hpb=506d60f0e188723ddc91c26824b41ac7034df3fe;p=jalview.git diff --git a/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java b/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java index b4d38dc..66a1014 100755 --- a/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java +++ b/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java @@ -7,9 +7,14 @@ // package com.stevesoft.pat.wrap; -import java.io.*; +import jalview.util.MessageManager; -import com.stevesoft.pat.*; +import java.io.IOException; +import java.io.RandomAccessFile; + +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 @@ -84,13 +89,16 @@ public class RandomAccessFileWrap implements StringLike { } - throw new ArrayIndexOutOfBoundsException("Out of bounds for file:" - + " i=" + i + ", Final Buffer: i0=" + i0 + " iend=" + 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() })); } public String toString() { - throw new Error("Not implemented"); + throw new Error(MessageManager.getString("error.not_implemented")); } public int length()