explain

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pralu
    New Member
    • Mar 2008
    • 34

    explain

    Question1> can anyone plz explain me what actually this line means :

    FileChannel channel = input.getChanne l();

    here what is channel is it a refeerence or what of class FileChannel type?

    then what actually input.getChanne l() is , i mean what is input here ?


    Question2> can anyone plz tell me what actually this line of code is doing ??

    MappedByteBuffe r buffer = channel.map(Fil eChannel.MapMod e.READ_ONLY,0,f ileLength);

    i want to no why we r using the dot operator here in channel.map(Fil eChannel.MapMod e.READ_ONLY....
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by pralu
    ...

    plz m fersher n facing a lot of problems so kindly help me
    You are starting at the wrong place then.
    Here's the correct starting point.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by pralu
      - here what is channel is it a refeerence or what of class FileChannel type?

      - what actually input.getChanne l() is , i mean what is input here ?

      - i want to no why we r using the dot operator here in channel.map
      If you don't know the answers to those questions and you don't know where to look
      up the information you're staring at snippets of code that are way above your head.
      Do as r035198x suggested: and start studying using that tutorial and forget about
      those examples you don't understand.

      kind regards,

      Jos

      Comment

      • Navdip
        New Member
        • Mar 2008
        • 22

        #4
        dassa tenu hun solution...Chan nel dekhna mein kaise chalaonga...kam ine

        Comment

        • JosAH
          Recognized Expert MVP
          • Mar 2007
          • 11453

          #5
          Originally posted by Navdip
          dassa tenu hun solution...Chan nel dekhna mein kaise chalaonga...kam ine
          English please.

          kind regards,

          Jos (moderator)

          Comment

          Working...