开发者

Help to find ConsoleConstants

I just find the snippet which contains this code:

setHeaderEncoding(ConsoleConstants.UTF8_ENCODING)

But I just have file not found exception. So my question is whe开发者_开发问答re to find the lib which contains ConsoleConstants?

Any useful comment is appreciated :)

Andrew


I think you might be referring to this SO answer: File Upload with Java (with progress bar)

The snippet appears to be using Apache Commons FileUpload, and calling this method. From the context, it would appear that is just wants the standard Java character encoding name for UTF-8; i.e. "UTF-8".

It is impossible to figure out which ConsoleConstants class the code is actually referring to, but it doesn't matter, IMO. Just use a literal string.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜