Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.10 seconds.

  1. Re: Does the Scanner class use an internal buffer?

    From the source, the Scanner(File) constructor wraps the File in a FileInputStream:

    public Scanner(File source) throws FileNotFoundException {
    this((ReadableByteChannel)(new...
  2. Re: Does the Scanner class use an internal buffer?

    Okay, gotcha. I assume that eclipse has its own JDK tucked away somewhere, but a JDK is simply the set of tools that compile your java code into bytecode (namely the javac tool). Compare that to the...
  3. Re: Does the Scanner class use an internal buffer?

    Strange. What jdk are you using?

    Either way, you can download the source either as part of the full JDK or standalone from this page: Java SE Downloads
  4. Re: Does the Scanner class use an internal buffer?

    It depends on how your system is setup, but for example my JDK folder is:

    C:\Program Files\Java\jdk1.7.0_07

    In that directory, I have a src.zip, and inside that I have a Scanner.java file...
  5. Re: Does the Scanner class use an internal buffer?

    Your jdk folder should contain src.zip. Check that out, find the Scanner class, and you can see for yourself exactly what it does. I'd be curious to see what you find.
Results 1 to 5 of 5