// don't know how to index
return;
}
if (node.hasPropertyName(QName.JCR_MIMETYPE)) {
PropertyState dataProp = (PropertyState) stateProvider.getItemState(
new PropertyId(node.getNodeId(), QName.JCR_DATA));
PropertyState mimeTypeProp =
(PropertyState) stateProvider.getItemState(
new PropertyId(node.getNodeId(), QName.JCR_MIMETYPE));
// jcr:encoding is not mandatory
String encoding = null;
if (node.hasPropertyName(QName.JCR_ENCODING)) {
PropertyState encodingProp =
(PropertyState) stateProvider.getItemState(
new PropertyId(node.getNodeId(), QName.JCR_ENCODING));
encoding = encodingProp.getValues()[0].internalValue().toString();
}
String mimeType = mimeTypeProp.getValues()[0].internalValue().toString();
Map fields = Collections.EMPTY_MAP;