однозначность Парсеры, «Не удается разрешить метод WriteValue (INT)» появляется со следующим кодом, был открыт в IntelliJ, любая помощь будет принята с благодарностью:Univocity Parsers, «Не удается разрешить метод writeValue (int)»?
public void write(){
// Writing to an in-memory byte array. This will be printed out to the standard output so you can easily see the result.
ByteArrayOutputStream csvResult = new ByteArrayOutputStream();
// CsvWriter (and all other file writers) work with an instance of java.io.Writer
Writer outputWriter = new OutputStreamWriter(csvResult);
TsvWriter writer = new TsvWriter(outputWriter, new TsvWriterSettings());
writer.writeHeaders("A", "B", "C", "D", "E");
//writes a value to the first column
writer.writeValue(10);
//writes a value to the second column
writer.writeValue(20);
//writes a value to the fourth column (index 3 represents the 4th column - the one with header "D")
writer.writeValue(3, 40);
//overrides the value in the first column. "A" indicates the header name.
writer.writeValue("A", 100.0);
//flushes all values to the output, creating a row.
writer.writeValuesToRow();
}
Хмм, добавив univocity-parsers-2.0.0-20151116.050805-20.jar из этой ссылки в библиотеку проекта, IntelliJ до сих пор не разрешает 'writeValue' в этом выражении' writer.writeValue (10); ' – 65535
У вас есть старый снимок. Перейдите в нижнюю часть страницы, чтобы получить последние: https://oss.sonatype.org/content/repositories/snapshots/com/univocity/univocity-parsers/2.0.0-SNAPSHOT/univocity-parsers-2.0.0- 20160115.024244-24.jar –
Хмм, эта ссылка 'https://oss.sonatype.org/content/repositories/snapshots/com/univocity/univocity-parsers/2.0.0-SNAPSHOT/univocity-parsers-2.0.0-20160115.024244 -24.jar' генерирует 404, есть ли рабочая ссылка ?, спасибо. – 65535