109110111112113114115116117118119120
{ if (data.get(0) instanceof String) return multiSequenceLoader(data); if (data.get(0) instanceof IDataSequence) { DataSequenceList res = new DataSequenceList(); res.addAll(data); return res; } else throw new IllegalArgumentException("Type not supported"); }
137138139140141142143144145
* @param data an array of data sequences * @return An IDataInput object to access the data */ public IDataInput dataInput(IDataSequence[] data) { DataSequenceList res = new DataSequenceList(); res.addAll(Arrays.asList(data)); return res; }
150151152153154155156157158
* @param data a single data sequence * @return An IDataInput object to access the data */ public IDataInput dataInput(IDataSequence data) { DataSequenceList res = new DataSequenceList(); res.add(data); return res; }