public String toString() { return super.toString() + "-" + pos.toString(); } }
/** * Constructs a new ContentType * * @param type * the data type for this content type, may not be * <code>null</code> * @param pos * the part of speech for this content type; may be null if the * content type has no natural part of speech * @param comparator * the line comparator for this content type; may be * <code>null</code> if the lines are not ordered * @since JWI 2.0.0 */ public ContentType(IDataType<T> type, POS pos, ILineComparator comparator) { if(type == null) throw new NullPointerException(); fType = type; fPOS = pos; fComparator = comparator; if (pos != null) { fString = "[ContentType: " + fType.toString() + "/" + fPOS.toString() + "]"; } else { fString = "[ContentType: " + fType.toString() + "]"; } }
if(soughtLine != null) return src; System.err.println(System.currentTimeMillis() + " - Error on direct access in " + type.getPOS().toString() + " data file: check CR/LF endings");