这些事情对我来说从来没有多大意义。我正在尝试使用这个类:
每次编译时都会出现一堆错误,例如:
> /ChunkedInputStream.java:85: cannot find symbol
> symbol : class HttpMethod
> location: class .ChunkedInputStream
> private HttpMethod method;
> ^
> /ChunkedInputStream.java:96: cannot find symbol
> symbol : class HttpMethod
> location: class .ChunkedInputStream
> final InputStream in, final HttpMethod method) throws IOException {
> ^
> /ChunkedInputStream.java:283: cannot find symbol
> symbol : variable HttpConstants
> location: class .ChunkedInputStream
> String dataString = HttpConstants.getString(baos.toByteArray());
> ^
> /ChunkedInputStream.java:303: cannot find symbol
> symbol : class Header
> location: class .ChunkedInputStream
> Header[] footers = HttpParser.parseHeaders(in);
> ^
> /ChunkedInputStream.java:303: cannot find symbol
> symbol : variable HttpParser
> location: class .ChunkedInputStream
> Header[] footers = HttpParser.parseHeaders(in);
我不应该访问这些对象吗,因为它是包 org.apache.commons.httpclient 的一部分;? 我还将 apache http 客户端 jars 添加到我的应用程序中。是什么赋予了?