1 /* ---------------------------------------------------------------------------- 2 * This file was automatically generated by SWIG (http://www.swig.org). 3 * Version 4.0.2 4 * 5 * Do not make changes to this file unless you know what you are doing--modify 6 * the SWIG interface file instead. 7 * ----------------------------------------------------------------------------- */ 8 9 package btllib; 10 11 public class SeqReader { 12 private transient long swigCPtr; 13 protected transient boolean swigCMemOwn; 14 SeqReader(long cPtr, boolean cMemoryOwn)15 protected SeqReader(long cPtr, boolean cMemoryOwn) { 16 swigCMemOwn = cMemoryOwn; 17 swigCPtr = cPtr; 18 } 19 getCPtr(SeqReader obj)20 protected static long getCPtr(SeqReader obj) { 21 return (obj == null) ? 0 : obj.swigCPtr; 22 } 23 24 @SuppressWarnings("deprecation") finalize()25 protected void finalize() { 26 delete(); 27 } 28 delete()29 public synchronized void delete() { 30 if (swigCPtr != 0) { 31 if (swigCMemOwn) { 32 swigCMemOwn = false; 33 btllibJNI.delete_SeqReader(swigCPtr); 34 } 35 swigCPtr = 0; 36 } 37 } 38 39 static public class SeqReaderFlag { 40 private transient long swigCPtr; 41 protected transient boolean swigCMemOwn; 42 SeqReaderFlag(long cPtr, boolean cMemoryOwn)43 protected SeqReaderFlag(long cPtr, boolean cMemoryOwn) { 44 swigCMemOwn = cMemoryOwn; 45 swigCPtr = cPtr; 46 } 47 getCPtr(SeqReaderFlag obj)48 protected static long getCPtr(SeqReaderFlag obj) { 49 return (obj == null) ? 0 : obj.swigCPtr; 50 } 51 52 @SuppressWarnings("deprecation") finalize()53 protected void finalize() { 54 delete(); 55 } 56 delete()57 public synchronized void delete() { 58 if (swigCPtr != 0) { 59 if (swigCMemOwn) { 60 swigCMemOwn = false; 61 btllibJNI.delete_SeqReader_SeqReaderFlag(swigCPtr); 62 } 63 swigCPtr = 0; 64 } 65 } 66 SeqReaderFlag()67 public SeqReaderFlag() { 68 this(btllibJNI.new_SeqReaderFlag(), true); 69 } 70 71 public final static long FOLD_CASE = btllibJNI.SeqReader_SeqReaderFlag_FOLD_CASE_get(); 72 public final static long NO_FOLD_CASE = btllibJNI.SeqReader_SeqReaderFlag_NO_FOLD_CASE_get(); 73 public final static long NO_TRIM_MASKED = btllibJNI.SeqReader_SeqReaderFlag_NO_TRIM_MASKED_get(); 74 public final static long TRIM_MASKED = btllibJNI.SeqReader_SeqReaderFlag_TRIM_MASKED_get(); 75 public final static long SHORT_MODE = btllibJNI.SeqReader_SeqReaderFlag_SHORT_MODE_get(); 76 public final static long LONG_MODE = btllibJNI.SeqReader_SeqReaderFlag_LONG_MODE_get(); 77 } 78 SeqReader(String source_path, long flags, long threads)79 public SeqReader(String source_path, long flags, long threads) { 80 this(btllibJNI.new_SeqReader__SWIG_0(source_path, flags, threads), true); 81 } 82 SeqReader(String source_path, long flags)83 public SeqReader(String source_path, long flags) { 84 this(btllibJNI.new_SeqReader__SWIG_1(source_path, flags), true); 85 } 86 SeqReader(String source_path)87 public SeqReader(String source_path) { 88 this(btllibJNI.new_SeqReader__SWIG_2(source_path), true); 89 } 90 close()91 public void close() { 92 btllibJNI.SeqReader_close(swigCPtr, this); 93 } 94 fold_case()95 public boolean fold_case() { 96 return btllibJNI.SeqReader_fold_case(swigCPtr, this); 97 } 98 trim_masked()99 public boolean trim_masked() { 100 return btllibJNI.SeqReader_trim_masked(swigCPtr, this); 101 } 102 short_mode()103 public boolean short_mode() { 104 return btllibJNI.SeqReader_short_mode(swigCPtr, this); 105 } 106 long_mode()107 public boolean long_mode() { 108 return btllibJNI.SeqReader_long_mode(swigCPtr, this); 109 } 110 get_format()111 public SeqReader.Format get_format() { 112 return SeqReader.Format.swigToEnum(btllibJNI.SeqReader_get_format(swigCPtr, this)); 113 } 114 115 static public class SeqReaderRecord { 116 private transient long swigCPtr; 117 protected transient boolean swigCMemOwn; 118 SeqReaderRecord(long cPtr, boolean cMemoryOwn)119 protected SeqReaderRecord(long cPtr, boolean cMemoryOwn) { 120 swigCMemOwn = cMemoryOwn; 121 swigCPtr = cPtr; 122 } 123 getCPtr(SeqReaderRecord obj)124 protected static long getCPtr(SeqReaderRecord obj) { 125 return (obj == null) ? 0 : obj.swigCPtr; 126 } 127 128 @SuppressWarnings("deprecation") finalize()129 protected void finalize() { 130 delete(); 131 } 132 delete()133 public synchronized void delete() { 134 if (swigCPtr != 0) { 135 if (swigCMemOwn) { 136 swigCMemOwn = false; 137 btllibJNI.delete_SeqReader_SeqReaderRecord(swigCPtr); 138 } 139 swigCPtr = 0; 140 } 141 } 142 setNum(long value)143 public void setNum(long value) { 144 btllibJNI.SeqReader_SeqReaderRecord_num_set(swigCPtr, this, value); 145 } 146 getNum()147 public long getNum() { 148 return btllibJNI.SeqReader_SeqReaderRecord_num_get(swigCPtr, this); 149 } 150 setName(String value)151 public void setName(String value) { 152 btllibJNI.SeqReader_SeqReaderRecord_name_set(swigCPtr, this, value); 153 } 154 getName()155 public String getName() { 156 return btllibJNI.SeqReader_SeqReaderRecord_name_get(swigCPtr, this); 157 } 158 setComment(String value)159 public void setComment(String value) { 160 btllibJNI.SeqReader_SeqReaderRecord_comment_set(swigCPtr, this, value); 161 } 162 getComment()163 public String getComment() { 164 return btllibJNI.SeqReader_SeqReaderRecord_comment_get(swigCPtr, this); 165 } 166 setSeq(String value)167 public void setSeq(String value) { 168 btllibJNI.SeqReader_SeqReaderRecord_seq_set(swigCPtr, this, value); 169 } 170 getSeq()171 public String getSeq() { 172 return btllibJNI.SeqReader_SeqReaderRecord_seq_get(swigCPtr, this); 173 } 174 setQual(String value)175 public void setQual(String value) { 176 btllibJNI.SeqReader_SeqReaderRecord_qual_set(swigCPtr, this, value); 177 } 178 getQual()179 public String getQual() { 180 return btllibJNI.SeqReader_SeqReaderRecord_qual_get(swigCPtr, this); 181 } 182 SeqReaderRecord()183 public SeqReaderRecord() { 184 this(btllibJNI.new_SeqReaderRecord(), true); 185 } 186 187 } 188 read()189 public SeqReader.SeqReaderRecord read() { 190 return new SeqReader.SeqReaderRecord(btllibJNI.SeqReader_read(swigCPtr, this), true); 191 } 192 193 public final static class Format { 194 public final static SeqReader.Format UNDETERMINED = new SeqReader.Format("UNDETERMINED"); 195 public final static SeqReader.Format FASTA = new SeqReader.Format("FASTA"); 196 public final static SeqReader.Format FASTQ = new SeqReader.Format("FASTQ"); 197 public final static SeqReader.Format SAM = new SeqReader.Format("SAM"); 198 public final static SeqReader.Format GFA2 = new SeqReader.Format("GFA2"); 199 public final static SeqReader.Format INVALID = new SeqReader.Format("INVALID"); 200 swigValue()201 public final int swigValue() { 202 return swigValue; 203 } 204 toString()205 public String toString() { 206 return swigName; 207 } 208 swigToEnum(int swigValue)209 public static Format swigToEnum(int swigValue) { 210 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) 211 return swigValues[swigValue]; 212 for (int i = 0; i < swigValues.length; i++) 213 if (swigValues[i].swigValue == swigValue) 214 return swigValues[i]; 215 throw new IllegalArgumentException("No enum " + Format.class + " with value " + swigValue); 216 } 217 Format(String swigName)218 private Format(String swigName) { 219 this.swigName = swigName; 220 this.swigValue = swigNext++; 221 } 222 Format(String swigName, int swigValue)223 private Format(String swigName, int swigValue) { 224 this.swigName = swigName; 225 this.swigValue = swigValue; 226 swigNext = swigValue+1; 227 } 228 Format(String swigName, Format swigEnum)229 private Format(String swigName, Format swigEnum) { 230 this.swigName = swigName; 231 this.swigValue = swigEnum.swigValue; 232 swigNext = this.swigValue+1; 233 } 234 235 private static Format[] swigValues = { UNDETERMINED, FASTA, FASTQ, SAM, GFA2, INVALID }; 236 private static int swigNext = 0; 237 private final int swigValue; 238 private final String swigName; 239 } 240 241 public final static long MAX_SIMULTANEOUS_SEQREADERS = btllibJNI.SeqReader_MAX_SIMULTANEOUS_SEQREADERS_get(); 242 } 243