diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-06 04:33:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-06 04:33:46 +0000 |
commit | 7ec024951951b22afa3b074a921e40fcebb2b361 (patch) | |
tree | 1409c76f8aac7ed4d7737077845f0ed1970c8666 /src/library | |
parent | e830a7ce9e1c90b4653c0dfed7992c28410ef6ab (diff) | |
download | scala-7ec024951951b22afa3b074a921e40fcebb2b361.tar.gz scala-7ec024951951b22afa3b074a921e40fcebb2b361.tar.bz2 scala-7ec024951951b22afa3b074a921e40fcebb2b361.zip |
Misc cleanups and crash avoidance, no review.
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/xml/include/sax/EncodingHeuristics.scala | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/library/scala/xml/include/sax/EncodingHeuristics.scala b/src/library/scala/xml/include/sax/EncodingHeuristics.scala index 349187437d..eaf0dffca8 100644 --- a/src/library/scala/xml/include/sax/EncodingHeuristics.scala +++ b/src/library/scala/xml/include/sax/EncodingHeuristics.scala @@ -14,14 +14,11 @@ import scala.xml.include._ import java.io.InputStream import scala.util.matching.Regex -/** - * <p> - * <code>EncodingHeuristics</code> reads from a stream +/** `EncodingHeuristics` reads from a stream * (which should be buffered) and attempts to guess * what the encoding of the text in the stream is. * If it fails to determine the type of the encoding, * it returns the default UTF-8. - * </p> * * @author Burak Emir * @author Paul Phillips @@ -40,16 +37,13 @@ object EncodingHeuristics } import EncodingNames._ - /** - * <p> - * This utility method attempts to determine the XML character encoding - * by examining the input stream, as specified here: - * http://www.w3.org/TR/xml/#sec-guessing - * </p> + /** This utility method attempts to determine the XML character encoding + * by examining the input stream, as specified at + * [[http://www.w3.org/TR/xml/#sec-guessing w3]]. * - * @param in <code>InputStream</code> to read from. - * @return String The name of the encoding. + * @param in `InputStream` to read from. * @throws IOException if the stream cannot be reset + * @return the name of the encoding. */ def readEncodingFromStream(in: InputStream): String = { var ret: String = null |