in progress
[jalview.git] / forester / java / src / org / forester / io / parsers / nexus / NexusBinaryStatesMatrixParser.java
index e110ec1..b6bea46 100644 (file)
@@ -35,10 +35,10 @@ import org.forester.evoinference.matrix.character.CharacterStateMatrix;
 import org.forester.evoinference.matrix.character.CharacterStateMatrix.BinaryStates;
 import org.forester.io.parsers.util.ParserUtils;
 import org.forester.io.parsers.util.PhylogenyParserException;
+import org.forester.util.ForesterConstants;
 
 public class NexusBinaryStatesMatrixParser {
 
-    private static final String UTF_8 = "UTF-8";
     private Object                             _nexus_source;
     private CharacterStateMatrix<BinaryStates> _matrix;
     private int                                _nchar;
@@ -62,7 +62,7 @@ public class NexusBinaryStatesMatrixParser {
 
     public void parse() throws IOException {
         reset();
-        final BufferedReader reader = ParserUtils.createReader( getNexusSource(), UTF_8 );
+        final BufferedReader reader = ParserUtils.createReader( getNexusSource(), ForesterConstants.UTF_8 );
         String line;
         boolean in_matrix = false;
         int identifier_index = 0;