mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Fix 1.6ism that Eclipse had "helpfully" put in for me...
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20673 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -291,13 +291,11 @@ public abstract class TikaPoweredMetadataExtracter extends AbstractMappingMetada
|
|||||||
new HashMap<String, String>();
|
new HashMap<String, String>();
|
||||||
private StringBuffer text;
|
private StringBuffer text;
|
||||||
|
|
||||||
@Override
|
|
||||||
public void characters(char[] ch, int start, int len) {
|
public void characters(char[] ch, int start, int len) {
|
||||||
if(text != null) {
|
if(text != null) {
|
||||||
text.append(ch, start, len);
|
text.append(ch, start, len);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void endElement(String namespace, String localname,
|
public void endElement(String namespace, String localname,
|
||||||
String qname) {
|
String qname) {
|
||||||
if(text != null && text.length() > 0) {
|
if(text != null && text.length() > 0) {
|
||||||
@@ -305,7 +303,6 @@ public abstract class TikaPoweredMetadataExtracter extends AbstractMappingMetada
|
|||||||
}
|
}
|
||||||
text = null;
|
text = null;
|
||||||
}
|
}
|
||||||
@Override
|
|
||||||
public void startElement(String namespace, String localname,
|
public void startElement(String namespace, String localname,
|
||||||
String qname, Attributes attrs) {
|
String qname, Attributes attrs) {
|
||||||
for(int i=0; i<attrs.getLength(); i++) {
|
for(int i=0; i<attrs.getLength(); i++) {
|
||||||
@@ -314,23 +311,15 @@ public abstract class TikaPoweredMetadataExtracter extends AbstractMappingMetada
|
|||||||
text = new StringBuffer();
|
text = new StringBuffer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void endDocument() throws SAXException {}
|
public void endDocument() throws SAXException {}
|
||||||
@Override
|
|
||||||
public void endPrefixMapping(String paramString) throws SAXException {}
|
public void endPrefixMapping(String paramString) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void ignorableWhitespace(char[] paramArrayOfChar, int paramInt1,
|
public void ignorableWhitespace(char[] paramArrayOfChar, int paramInt1,
|
||||||
int paramInt2) throws SAXException {}
|
int paramInt2) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void processingInstruction(String paramString1, String paramString2)
|
public void processingInstruction(String paramString1, String paramString2)
|
||||||
throws SAXException {}
|
throws SAXException {}
|
||||||
@Override
|
|
||||||
public void setDocumentLocator(Locator paramLocator) {}
|
public void setDocumentLocator(Locator paramLocator) {}
|
||||||
@Override
|
|
||||||
public void skippedEntity(String paramString) throws SAXException {}
|
public void skippedEntity(String paramString) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void startDocument() throws SAXException {}
|
public void startDocument() throws SAXException {}
|
||||||
@Override
|
|
||||||
public void startPrefixMapping(String paramString1, String paramString2)
|
public void startPrefixMapping(String paramString1, String paramString2)
|
||||||
throws SAXException {}
|
throws SAXException {}
|
||||||
}
|
}
|
||||||
@@ -340,33 +329,22 @@ public abstract class TikaPoweredMetadataExtracter extends AbstractMappingMetada
|
|||||||
* care about the file contents.
|
* care about the file contents.
|
||||||
*/
|
*/
|
||||||
protected static class NullContentHandler implements ContentHandler {
|
protected static class NullContentHandler implements ContentHandler {
|
||||||
@Override
|
|
||||||
public void characters(char[] paramArrayOfChar, int paramInt1,
|
public void characters(char[] paramArrayOfChar, int paramInt1,
|
||||||
int paramInt2) throws SAXException {}
|
int paramInt2) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void endDocument() throws SAXException {}
|
public void endDocument() throws SAXException {}
|
||||||
@Override
|
|
||||||
public void endElement(String paramString1, String paramString2,
|
public void endElement(String paramString1, String paramString2,
|
||||||
String paramString3) throws SAXException {}
|
String paramString3) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void endPrefixMapping(String paramString) throws SAXException {}
|
public void endPrefixMapping(String paramString) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void ignorableWhitespace(char[] paramArrayOfChar, int paramInt1,
|
public void ignorableWhitespace(char[] paramArrayOfChar, int paramInt1,
|
||||||
int paramInt2) throws SAXException {}
|
int paramInt2) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void processingInstruction(String paramString1, String paramString2)
|
public void processingInstruction(String paramString1, String paramString2)
|
||||||
throws SAXException {}
|
throws SAXException {}
|
||||||
@Override
|
|
||||||
public void setDocumentLocator(Locator paramLocator) {}
|
public void setDocumentLocator(Locator paramLocator) {}
|
||||||
@Override
|
|
||||||
public void skippedEntity(String paramString) throws SAXException {}
|
public void skippedEntity(String paramString) throws SAXException {}
|
||||||
@Override
|
|
||||||
public void startDocument() throws SAXException {}
|
public void startDocument() throws SAXException {}
|
||||||
@Override
|
|
||||||
public void startElement(String paramString1, String paramString2,
|
public void startElement(String paramString1, String paramString2,
|
||||||
String paramString3, Attributes paramAttributes)
|
String paramString3, Attributes paramAttributes)
|
||||||
throws SAXException {}
|
throws SAXException {}
|
||||||
@Override
|
|
||||||
public void startPrefixMapping(String paramString1, String paramString2)
|
public void startPrefixMapping(String paramString1, String paramString2)
|
||||||
throws SAXException {}
|
throws SAXException {}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user