commons-file/src/main/java/info/monitorenter/cpdetector/io/ByteOrderMarkDetector.java
public Charset detectCodepage(URL url) throws IOException {
    Charset result;
    BufferedInputStream in = new BufferedInputStream(url.openStream());
    result = this.detectCodepage(in, Integer.MAX_VALUE);
    in.close();
    return result;
  }
public Charset detectCodepage(URL url) throws IOException {
    Charset result;
    BufferedInputStream in = new BufferedInputStream(url.openStream());
    result = this.detectCodepage(in, Integer.MAX_VALUE);
    in.close();
    return result;
  }
public Charset detectCodepage ( URL url ) throws IOException { Charset result ; BufferedInputStream in = new BufferedInputStream ( url . openStream ( ) ) ; result = this . detectCodepage ( in , Integer . MAX_VALUE ) ; in . close ( ) ; return result ; }
<p>
Delegates to {@link #detectCodepage(java.io.InputStream, int)}with a buffered input stream of size 10
(8 needed as maximum).
</p>

@see ICodepageDetector#detectCodepage(java.net.URL)
<p > Delegates to { @link #detectCodepage ( java . io . InputStream int ) } with a buffered input stream of size 10 ( 8 needed as maximum ) . < / p >