Lines Matching refs:contentType
150 * @param contentType The MIME content type for the source for which
159 public static InputSource createInputSource(String contentType,
166 if (contentType != null) {
169 contentType = contentType.toLowerCase();
170 index = contentType.indexOf(';');
174 attributes = contentType.substring(index + 1);
175 contentType = contentType.substring(0, index);
208 if (types[i].equals(contentType)) {
213 throw new IOException("Not XML: " + contentType);
223 contentType = contentType.trim();
224 if (contentType.startsWith("text/")) {
253 String contentType = conn.getContentType();
254 retval = createInputSource(contentType, conn.getInputStream(),
336 String contentType = conn.getContentType();
337 retval = createInputSource(contentType,