I am working on a readseq DNA protein alignment project. Its "flybase" package contains Java code that has the "charToByteConverter" class, which does not compile and does not produce an outdated message. (Http://iubio.bio.indiana.edu/soft/molbio/readseq/java/). You can find the readseq source here. I need to add some additional features to this application, I donβt know how to fix this in order to get to my goal. I am a kind of new bie in java. Plz help if possible. Readseq with its gui is easily available online. It just converts an array of given characters into bytes. Here is some information about this: (docjar.com/docs/api/sun/io/CharToByteConverter.html). I do not know what to do with this. This is an abstract class that is used as:
protected byte[] getBytes(CharToByteConverter ctb) { ctb.reset(); int estLength = ctb.getMaxBytesPerChar() * count; byte[] result = new byte[estLength]; int length; try { length = ctb.convert(value, offset, offset + count, result, 0, estLength); length += ctb.flush(result, ctb.nextByteIndex(), estLength); } catch (CharConversionException e) { length = ctb.nextByteIndex(); } if (length < estLength) {
source share