Results 1 to 16 of 16

Thread: 90 java

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned
    Join Date: Apr:2003
    Location:
    Posts: 342

    90 java

    , 90 . comma delimited flatfile. FileInputStream, FileReader, Scanner. heap error . 90% ( FileInputStream, ).
    Scanner, . . Heap size 1200 .

  2. #2
    Registered User idn's Avatar
    Join Date: May:2004
    Location:
    Posts: 491
    , , .
    EP35-DS4 :: Pentium Q9550 :: 4x2GB DDRII :: GeForce 9800GT :: 2x320GB SATA :: DVD-ROM :: CMPSU-450VXEU

  3. #3
    Banned
    Join Date: Apr:2003
    Location:
    Posts: 342
    : FileInputStream fis = new FileInputStream(filepath);
    int x = fis.available();
    byte b[] = new byte[x];
    fis.read(b);
    file = new String(b);

    : Scanner reader = new Scanner(new File(file));
    while (reader.hasNextLine())
    {
    .....
    }
    Scanner, FileReader.

    mem leak, - , Array.
    footprint Array String Bytes?

  4. #4
    Registered User idn's Avatar
    Join Date: May:2004
    Location:
    Posts: 491
    Quote Originally Posted by Unreal View Post
    : FileInputStream fis = new FileInputStream(filepath);
    int x = fis.available();
    byte b[] = new byte[x];
    fis.read(b);
    file = new String(b);
    . 64MB heap, .

    :

    Code:
    BufferedReader in = new BufferedReader(new InputStreamReader(new FileInputStream(filepath)));
    String line = null;
    while ((line = in.readLine()) != null) {
        // process the line;
    }
    , -.
    Last edited by idn; 25th November 2008 at 00:20. Reason:
    EP35-DS4 :: Pentium Q9550 :: 4x2GB DDRII :: GeForce 9800GT :: 2x320GB SATA :: DVD-ROM :: CMPSU-450VXEU

  5. #5
    Banned
    Join Date: Apr:2003
    Location:
    Posts: 342
    , . .

    :

    * A1 0 2 3 4 2 (String double)
    :
    1 2 3 4 2, .

    72000 19 .

  6. #6

    Join Date: Jun:2002
    Location: 85435
    Posts: 4,619
    - 300+ 3D (4 000 000+ - 3D ). ( ).
    .

    Hint: . . .
    X570 Aorus Elite || R5 3600x || NH-D14 || 32GB RAM || GTX1070Ti Ultra Silent || PCE-AC56 || 850 EVO+MP510+HDDs || SSR-650RT all in Dark Base 900 || EV2736W || G29 || Obutto Ozone+Sparco R333

  7. #7

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    . ? ? .

  8. #8
    Banned
    Join Date: Apr:2003
    Location:
    Posts: 342
    , , . "" , , , , "", " ".

  9. #9

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    , String, - , StringBuffer StringBuilder, - ? .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |