Can i use "this" in the contructor?

Hi,
Hereafter is my codes:
public AbstractHTTPClient(String id)
super(id);
parsingHandler = new HTTPParsingHandler(this);
parser = new ConfigurableByteParser(parsingHandler);
This can compile. But I am not sure if I can use the "this" object in the contructor.
Thank you.

You can there is no problem but you must be careful, make sure that the method you are passing this to doesn�t use any resources in this object which is not currently initialised. If this happens you will get an annoying NullPointerException

Similar Messages

  • Can I use this code to self Generate month ? ie Jan, Feb, Mar

    Hi can some one tell me is this possible to do.
    I am making a Date Of Birth using combo box�s this is the code I am using to generate the date.
    My question is can I use this for the month i.e. Jan, Feb, Mar etc
    private void DayOfTheMonth(int highNumber,JComboBox comboBox){
    comboBox.addItem(" ");
    for (int index = 1; index < highNumber; index++) {
    comboBox.addItem(String.valueOf(index));
    private void DaySpecificComboBox()
    //Day is stopat 32 as there is 31 days in the month
    DayOfTheMonth( 32, DayjComboBox);
    }

    Hi,
    This can be done with the help of your abaoer, you can have the required texts from the table T009C, otherwise the programmer can hard code the months as you given.
    Regards,
    Vasu.

  • I recently bought a new iMac as well as a wireless time capsule and have it connected how can I use this external drive as the location to store all my files for iTunes, or is this even possible?

    New iMac user here, I recently bought a new iMac and Time capsule and have the whole network up and running now. I have connected another external HD to the time capsule as well and have a total of 3 TB of storage connected wireless to my new iMac. My question is can I use this location as the default location for iTunes?  I doubt I am gonna run out of room considering the iMac has 1 TB of storage already, but I'd prefer to keep my movies and music off the Mac to keep it running smoothly. If this is possibly, I'd like to do this with iPhoto as well. 

    I would advise against placing your iTunes library on a Time Capsule.
    The Time Capsule is designed as a backup device and not for wireless streaming of video.
    Before you do anything more, can I suggest you put into place a reliable, redundant backup strategy.
    Unless you are prepared to risk loss of your iTunes library due to a hard drive failure, I would not put iTunes on the Time Capsule.
    Leave your iTunes library on your iMac until such time as your internal drive is full. Backup to Time Capsule using Time Machine and create a clone of your internal iMac HD to your external drive.
    That's my 2 cents worth. Others may have a different opinion.

  • My Macbook won't start, and I must reinstall the disk. I haven't used time machine to back up, and I want to use an external drive to back up now. How can i do this from the utilities page?

    I am currently in Zambia on missions work and my computer is constantly exposed to heat. I have just been trying to avoid using it during the hottest part of the day. Today though, I started it up and it was stuck on the grey page with the rotating circle for over an hour, then once the circle left, it remained frozen on the gray page. I used command + r at startup to go to the utilities page to analyze the disk. It found that there were problems with the disk, but then it could not fix those problems and told me to backup as much information as I could and reinstall or redo it all. I haven't ever used time machine to back up any of my information, but i have an external drive that I can use right now to backup my files. I can't get into my computer though to backup the files. How can I use this external drive to backup my files while the computer is currently messed up? Please help.

    Emergency Backups (Data Recovery)
    A)          Format an external disk:
              (This will erase all data on the external disk.)
              Boot in recovery mode (power then Command-R).
                        Alternative: Network recovery boot (power then Command-Option-R keys)
              To format (and erase) the destination recovery disk:
              Plug in the drive you are about to erase.
              Select the volume that is NOT your system disk.
              Click on Partition.
              Pull down under Partition Layout to 1 Partition.
              Click on Options…
              Select GUID Partition Table.
              Name: Emergency Backup (or whatever you prefer)
              Format: Select Mac OS Extended (journaled)
              Click Apply.
              Click Partition.
    B)          Try to boot in Safe Mode (power then Shift key).
              (This will be a slow boot.  Be patient.)
              If it won’t boot in Safe Mode, jump to C.
              If it boots in Safe Mode, try to boot in normal mode.
                        If that fixed your problem then start a Time Machine backup.
                        http://support.apple.com/kb/ht1427
                        https://discussions.apple.com/docs/DOC-4055
              If not, boot in Safe Mode again.
              Go > Computer.
              Double click on the system disk.
              Drag the Users folder to the recovery disk.
    C)          To clone the disk:
              Boot in recovery mode.
              Select Disk Utility.
              Try to repair the system disk twice.
              Whether or not the repair succeeds:
              Drag and drop the system disk to Source:
              Drag an drop Emergency Backup to Destination:
              (Take care not to reverse this order.)
              Click Restore (the lower Restore button).
    Once your system is healthy, maintain two reasonably current backups.  (Time machine restores can fail.)
    Create either two Time Machine backups (good) or one or more Time Machine backup(s) and one or more bootable-clone backup(s) (better).
              Use Carbon Copy Cloner or SuperDuper! to create bootable-clone recovery disks.
              See https://discussions.apple.com/docs/DOC-3045
              and https://discussions.apple.com/docs/DOC-6031

  • With the online package of PS/LR, how many machines can I use this on?

    With the online package of PS/LR, how many machines can I use this on? Can I have it at work and home?

    2 Computer License http://forums.adobe.com/thread/977272

  • I just purchased a 3TB Time Capsule.  I live in Italy and have 220V power.  The Time Capsule is rated for that, but the cord says 125V.  Can I use this cord with an adapter, or do I need to buy a new cord at an Italian store?

    I just purchased a 3TB Time Capsule.  I live in Italy and have 220V power.  The Time Capsule is rated for that, but the cord says 125V.  Can I use this cord with an adapter, or do I need to buy a new cord at an Italian store?

    Due to the kind of plug used the US power cord is rated at the 125v value.. and legally we cannot advise you to use on higher voltages.. although I have never had issues in Australia.. 240v.
    But adapters from your Euro power plug to US are generally ugly .. unsightly things.. and often sit high above the socket and are none too stable.. I agree with Bob.. just go out and buy a standard figure 8 power cord.. check with Apple in Italy for a white one.. if you are going to have it on show.. black are far more common. Or even check ebay for a standard power Apple power cord as a number of items they sell use the figure8 socket. 

  • When I try to install Lion it tell's me "You can't use this version of the application install mac os x Lion with this version of Mac os x" even though I have the latest update 10.5.8 of Mac os X?

    When I try to install Lion it tell's me "You can't use this version of the application install mac os x Lion with this version of Mac os X" even though I have the latest update 10.5.8 of Mac os X?
    The install icon has this sign on it 

    moose0422 wrote:
    You can't install Lion over Leopard. To install Lion, a requirement is Snow Leopard. So you can either upgrade to Snow Leopard first or you can make a bootable Lion install disc and use that to wipe your hard drive and install a fresh copy of Lion.
    So to make a disk would require you to purchase Snow Leopard and upgrade to 10.6.8 so you can use the App Store, unless you have access to another computer to download it from with your Apple ID. Remember it is about a 3.4GB download.
    Good Luck

  • I purchased Adobe Illustrator CS2 on CD many years ago and now i have bought a new iMac computer it won't let me install from the CD's. How can i use this product on iMac ?

    I purchased Adobe Illustrator CS2 on CD many years ago and now i have bought a new iMac computer it won't let me install from the CD's. How can i use this product on iMac ?

    Because the Nano was previous synced to another comuter/iTunes library.
    See the following:
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities

  • I have updated to OS X 10.9 and now can't open Aperture, message reads You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... all i need to know is how to get Aperture to work again..help !

    I have just updated to OS X 10.9 and now find that I can't open Aperture to access photos etc, message reads : You can't use this version of the application "Aperture" with this version of OS X. You have "Aperture" 3.2.3... whichj is not a lot of help, i have limited technical ability and all i need to know is how to get Aperture to work again...help !

    Software Update?

  • II  downloaded the OS X version 10.9 and my iPhoto version 9.2.3 will n.ot open.  I get a message that I can't use this version of the application I photo with this version of OSX.  What do I do now and how do I get the photos out of the old version?

    I downloaded the OS X version 10.9 and my Iphoto version 9.2.3 will not open.  I get a message that I can't use this version of the application I photo with this version of OS X.  How do I upgrade to a i photo that will run on 10.9.  Do I purchase a new program or can I do just an download?

    Check the "Purchases" page in the Mac App Store and see if there is a more recent version there already waiting for you.

  • TS4148 I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks

    I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks

    Only the carrier an iPhone was sold as carrier locked with can officially unlock the iPhone. It is my understanding that Softbank in Japan does not unlock iPhones.

  • HT4623 good day..i have my iphone 4 now..am here in the philippines...how can i use this unit using my smart simcard here..thank you.

    good day..i have my iphone 4 now..am here in the philippines...how can i use this unit using my smart simcard here..thank you.

    Is your iphone officially unlocked?
    If not, then you cannot use it there.

  • HT201441 I bought iPhone 4s device from the owner and the previous owner is not present and the device has already been erased, how can I use this device using my Apple ID and iCloud

    I bought iPhone 4s device from the owner and the previous owner is not present and the device has already been erased, how can I use this device using my Apple ID and iCloud

    Hello adilx
    The only way to get passed that and to use that iPhone is to ask the previous owner to remove it from icloud.com in the Find my iPhone section.
    Find My iPhone Activation Lock: Removing a device from a previous owner’s account
    http://support.apple.com/kb/TS4515
    If the previous owner is not present
    Make sure the device is powered on and connected to a Wi-Fi or cellular network. Then contact the previous owner and ask them to follow these steps to remove the device from their account:
    Sign in to their iCloud account at www.icloud.com/find.
    Click All Devices to open a list of devices linked to their account, then select the device to be removed.
    Click the Erase button to erase all content and settings from the device. When prompted, don't enter a phone number or message. Click Next until the device is erased.
    When the erase is complete, click "Remove from Account" to remove the device from the account.
    After the device is erased and removed from the account, you can proceed with the device setup process.
    Regards,
    -Norm G.

  • I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!?

    I have just bought a 2011 iMac (2.5 ghz, 4gb) and logic express 9, and when i installed logic and tried to run it i had a message saying 'you can't use this version of the application logic express with this version of Mac OS X. How do i sort this out!? It is very frustrating as the main reason i have bought  a mac is to use logic! Any help would be great as i am a complete novice when it comes to Macs!

    You're probably on OS X Lion?
    I had the same problem as you. I used Software Update to update Logic Express to the latest version, and then it ran without any problems.

  • I am in the US and thinking of buying an iPad here. Can I use this in Australia when I get home? What do I need to know?

    I am in the US and thinking of buying an iPad here. Can I use this in Australia when I get home? What do I need to know?

    You may find this Discussion of Interest...
    https://discussions.apple.com/message/12175709#12175709

Maybe you are looking for

  • Self assigned ip and can't connect wirelessly on any apple device

    Man oh man... this issue has been festering for almost an entire year now and I have not found a solution. Last August (2009) my macbook stopped wirelessly connecting to my ATT 2WIRE dsl modem saying it had a self assigned ip address. I bought the co

  • Managing bit flags in an array of bytes

    In my program, I have a large array of bytes. Some arbitrarily long groups of bytes in this array act as groups of bit flags. I need to be able to retrieve and manipulate these bit flags. I read that the best way to do this is with bitwise operations

  • Need help on starting with OSB

    Hi , I am new to OSB. Can some body guide me how i can start working on this ? to be specific any books or guides which will have the practical implementations , so that its easy to understand...

  • Distibution Model- Outbound parameters for message type could not be found

    Hi SRM Gurus,                       Have you ever encountered this error while buidling Distribution model in BD64 - When I try to generate partner profile, I am getting this error- Outbound parameters for message type BBPCO BBPCO01 could not be crea

  • Stub classes generation in rmi

    i want to know how the class loading of stubs classes works in actual versions of java (1.5 and later)? i had read a lot of documentation of rmi, and generally it says that the stubs classes and implemented interfaces classes of a remote object must