1 package org.catacomb.dataview.read;
2
3
4
5
6 public class XMLContentType implements ContentType {
7
8
9 public boolean claims(byte[] ba) {
10 String s = new String(ba);
11 s = s.trim();
12 return (s.startsWith("<"));
13 }
14
15
16 public ContentReader makeReader(byte[] ba, FUImportContext ctxt) {
17 return new XMLContentReader(ba, ctxt);
18 }
19
20
21 }