diff options
author | david_williams | 2005-05-01 08:03:21 +0000 |
---|---|---|
committer | david_williams | 2005-05-01 08:03:21 +0000 |
commit | 757ccfef7630b35b28cd0a7615785cfbaefa8744 (patch) | |
tree | 2dc3b47aa6e9498b50fdc5425b369e21a9e9c4ec /bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml | |
parent | e0b1419da83e3a4a66f8241e596b748807089212 (diff) | |
download | webtools.sourceediting-757ccfef7630b35b28cd0a7615785cfbaefa8744.tar.gz webtools.sourceediting-757ccfef7630b35b28cd0a7615785cfbaefa8744.tar.xz webtools.sourceediting-757ccfef7630b35b28cd0a7615785cfbaefa8744.zip |
several fixes and some renames to 'internal'
Diffstat (limited to 'bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml')
3 files changed, 6 insertions, 6 deletions
diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/ContentDescriberForXML.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/ContentDescriberForXML.java index 26597672f9..fdba1fb9cc 100644 --- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/ContentDescriberForXML.java +++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/ContentDescriberForXML.java @@ -25,10 +25,10 @@ import org.eclipse.wst.sse.core.internal.encoding.IContentDescriptionExtended; import org.eclipse.wst.sse.core.internal.encoding.IResourceCharsetDetector; -public class ContentDescriberForXML implements ITextContentDescriber { +public final class ContentDescriberForXML implements ITextContentDescriber { private final static QualifiedName[] SUPPORTED_OPTIONS = {IContentDescription.CHARSET, IContentDescription.BYTE_ORDER_MARK, IContentDescriptionExtended.DETECTED_CHARSET, IContentDescriptionExtended.UNSUPPORTED_CHARSET, IContentDescriptionExtended.APPROPRIATE_DEFAULT}; - protected IResourceCharsetDetector getDetector() { + private IResourceCharsetDetector getDetector() { return new XMLResourceEncodingDetector(); } @@ -140,7 +140,7 @@ public class ContentDescriberForXML implements ITextContentDescriber { * @param detector * @throws IOException */ - protected void handleCalculations(IContentDescription description, IResourceCharsetDetector detector) throws IOException { + private void handleCalculations(IContentDescription description, IResourceCharsetDetector detector) throws IOException { // note: if we're asked for one, we set them all. I need to be sure if // called // mulitiple times (one for each, say) that we don't waste time diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLDeclDetector.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLDeclDetector.java index 5843f61c4f..20ab286de1 100644 --- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLDeclDetector.java +++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLDeclDetector.java @@ -22,8 +22,8 @@ import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.CoreException; public class XMLDeclDetector { - private static final int MAX_BUF_SIZE = 1024 * 2; - private static final int MAX_MARK_SIZE = 1024 * 2; + private static final int MAX_BUF_SIZE = 1024 * 8; + private static final int MAX_MARK_SIZE = 1024 * 8; protected boolean fHeaderParsed; private boolean fIsXML; protected Reader fReader; diff --git a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLHeadTokenizer.java b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLHeadTokenizer.java index b42e3d86c2..2514222794 100644 --- a/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLHeadTokenizer.java +++ b/bundles/org.eclipse.wst.xml.core/src/org/eclipse/wst/xml/core/internal/contenttype/XMLHeadTokenizer.java @@ -127,7 +127,7 @@ public class XMLHeadTokenizer { private boolean hasMore = true; - private final static int MAX_TO_SCAN = 1000; + private final static int MAX_TO_SCAN = 8000; StringBuffer string = new StringBuffer(); // state stack for easier state handling private IntStack fStateStack = new IntStack(); |