X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fcom%2Fstevesoft%2Fpat%2Fwrap%2FRandomAccessFileWrap.java;fp=src%2Fcom%2Fstevesoft%2Fpat%2Fwrap%2FRandomAccessFileWrap.java;h=f5b61abd7d86e401dc4b4d7487af06dca7e5db21;hb=aced09c4feeaf3406269442c14e54abeeb4cad81;hp=b4d38dcffa43c014bf84d85535fed0d9769cc962;hpb=5d32c7ad007e098894b332b6fca61e1824972c50;p=jalview.git diff --git a/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java b/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java index b4d38dc..f5b61ab 100755 --- a/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java +++ b/src/com/stevesoft/pat/wrap/RandomAccessFileWrap.java @@ -7,6 +7,8 @@ // package com.stevesoft.pat.wrap; +import jalview.util.MessageManager; + import java.io.*; import com.stevesoft.pat.*; @@ -84,13 +86,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()