Why can't get the object "out" in this way?

We use "PrintWriter out=response.getWriter()"to get a "out" object in Servlet and output text to webbrowser with it.But I think the PrintWriter is a class and Why can't I get the object "out" use this way:"PrintWriter out=new PrintWriter()"?I think the later is easier to understand.Anyone can help me?

I check the Servlet API.The PrintWriter has a constructor with a abstract object Writer as it's parameter.I couldn't create the Writer object so I can't create the out object.Why it's constructor is protected by java?

Similar Messages

  • How can I get the best out of my battery life?

    There are a variety of things you can do to extend your device battery life, and use your phone for longer periods of time to see you through the day.
    Set your screen to timeout after a period of inactivity. This way your phone is not sitting idle with the screen backlight consuming extra energy. The recommended screen timeout is 30 seconds, but most phones will allow from 15 seconds to 10 minutes.
    Turn off location services (GPS), Wi-Fi and Bluetooth when not using these functions. When they're on, your phone constantly searches for your current location and open networks, which has a big impact on battery life.
    Turn down the screen brightness. For example, on an iPhone 4 the lowest brightness setting gives roughly 6.5 hours of continuous use, whereas the highest setting gives roughly 3.5 hours. You can always adjust the brightness when you're outside so you can still see your screen clearly. Some devices have an auto-brightness setting, where the phone adjusts the screen brightness depending on the light around it.
    Close your applications. On smartphones, returning to the ‘home' screen only minimises your apps – they keep running in the background. Closing your apps fully will save power; for example, on Samsung Galaxy devices hold down the home button for two seconds to see a list of all open apps. You can then swipe these to the left of the screen to exit them completely. On an Apple product, double press the home button to bring up all active applications and exit from there.

    Re: How can I get the best out of my battery life?
    Hi,
    When I make phone calls people on the other end have difficulty hearing me. They describe as they can hardly hear me as if I was speaking through the pillow etc). I am not touching any buttons and obviously it is not mute. This was happening couple of time in June, then every now and then. Recently it happened a few time in 2 weeks. I was trying to check if it was a reception issue but the place I spoke from is my office I make 70% of phone calls from. Can you book time for me in repair shop and address the issue.
    Thank you.
    Sergey Sinitsyn

  • I just got my first mac pro and I can't get the photos out of iPhotos moved on my hp external hard drive, I try export says unable, then I try to drag it from the desktop to the external hard drive but same problem. Thank you so much

    I just got my first mac pro and I can't get the photos out of iPhotos and move them on my hp external hard drive, I try export says unable, then I try to drag it from the desktop to the external hard drive but same problem. what to do? Thank you so much

    How is your external drive formatted? Use Disk Utility to check the volume format. If it is NTFS, you will need to reformat the HDD as exFAT in order to retain universal compatibility (RW to it on both Mac and Windows).

  • I put a cd in and can't eject it. No eject icon anywhere. How can I get the cd out?

    I put a cd in to download pictures and it did not read, and I can't get the cd out. There are no eject icons anywhere. How do I eject this cd?

    Have a look at > Eject a stuck disk from your Mac DVD super drive

  • Can i get the filled out response sent to an email address

    can i get the filled out response sent to an email address

    Hi corjul94,
    You can get filled out response to a particular email address. In order to do that you need to first share the form with that user (to whom you want to send the responses). After that you need to go to Options tab and click on 'Email Notifications' and in 'To' enter that email address. Also, make sure that you select the 'Include submitted data 'check box'.

  • I can't  get the dvd out of the machine

    i was checking out the native instruments absynth 3 tutorial dvd. after quit the dvd i can not manage to eject it , i get a message saying that dvd is still in use and i have to quit the applications and try again. but there are no applications open, i even tried to force quit the finder , then shut the machine off. and turned it on again , no avail. i can't get the dvd out. any ideas?

    Restart the machine with the Option, Command, O, and F keys held down, and type the following commands into the prompt:
    eject cd
    mac-boot
    The DVD should be ejected once the first command has been issued. There are some other options available on this page.
    (9604)

  • How can I get the old Firefox back, this new one stinks

    how can I get the old Firefox back, this new one stinks

    Firefox is highly customizable and you may be able to customize it to meet your needs.
    If you do not like the new UI, you can make Firefox 4 look and behave more like Firefox 3.6, for details see http://www.computertechtips.net/64/make-firefox-4-look-like-ff-3-6
    To downgrade to Firefox 3.6 first uninstall Firefox 4, but do not select the option to "Remove my Firefox personal data". If you select that option it will delete your bookmarks, passwords and other user data.
    You can then install the latest version of Firefox 3.6 available from http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your current bookmarks, passwords etc.
    To avoid possible problems with downgrading, I recommend going to your profile folder and deleting the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Deleting these files will force Firefox to rebuild the list of installed extensions, checking their compatibility, and reset toolbar customizations.
    For details of how to find your profile folder see https://support.mozilla.com/kb/Profiles

  • I have Elements 10 and a Nikon D7100. PSE10  CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?

    I have Elements 10 and a Nikon D7100. PSE10  CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?

    The D7100 requires camera raw 7.4 which is not compatible with Photoshop Elements 10.
    Your two main options are
    1) Buy a newer version of Photoshop Elements
    2) Use the Adobe DNG converter to convert the NEF files to DNG files which can then be used by Photoshop Elements 10.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

  • How Can I get the MOST out of my Ipod?

    greetings yall!!
    Sean Price in the house.. this is NOW my third Ipod..its the Product RED Ipod Nano.. mad nice..
    but I feel as if I'm missing something.. I mean all I do is put music on there and JUST NOW i have learned to put my music videos on it..
    BUT come on.. I have heard YOU can do SO MUCH more then just that..
    I mean its like i have these video Ipods and I'm just using them as SHUFFLE ipods, you feel me?
    I mean I also have the red shuffle 2nd generation Ipod as well... and for that one yeah it makes sense all I CAN DO is play music on that one..
    but please SOMEBODY please give me the FULL breakdown on how to get the MOST out of my Ipods..
    PLEASE do advise!!
    I want it all, games!!! hacks, other OS's whatever.. just somebody school me!!
    THANK YOU!!!

    Click here for information.
    (30988)

  • I can't get the DVD out of my mac

    I'm trying to get the DVD out of the machine . I tried to restart the machine and hold down the mouse, but that still does not work. Does anyone know how to solve this?
    Thank you

    Force eject a stuck cd/dvd
    First try the normal methods to remove the disc. Drag its icon to the Trash can in the Dock or select 'Eject' from the File menu.
    If you are running a virtual machine, e.g. VMFusion, ensure that the CD is disconnected from the virtual machine. This will sometimes allow the CD to now show up in Mac OS X.
    Shut down the computer and start up whilst holding down the mouse button. This may take some time, but keep your finger on the mouse button right up until the disc comes out or the log-in screen has appeared.
    If you have Toast Titanium installed on your computer, choose EJECT DISC from the menubar.
    Sometimes you can successfully use the eject disc button in iTunes even if the disc is not visible to the Finder
    Open Disc utility and choose the disc you wish to eject in the left-hand pane, then click on the Eject button.
    Some Macintoshes have a paperclip hole that you can insert a straightened paperclip into, manually triggering the eject mechanism.
    Open Terminal and type "drutil tray eject" to eject the disc/tray, and "drutil tray close" to close the tray.
    If your computer has an eject button on the keyboard, restart the computer holding down the Option key. When the startup disk selection screen appears, let go of the option key and press the keyboard's eject button.
    Source: http://guides.macrumors.com/Force_Eject_a_Stuck_CD_or_DVD

  • I see the entry in history but can i get the date out of the entry

    I can see an entry in history that Id like to be able to get the date of that entry. Is there a way? I right click and get not much info

    If you view the entry in the Library dialog, you can adjust the columns displayed to include the last visit date. Either:
    * Ctrl+Shift+h
    * menu: History > Show All History
    On the headings bar that shows Name, Location, or other headings, right-click to turn different columns on and off. Can you get the date?
    Note that the Library dialog only shows the date and time of the latest visit, and not every visit. The information for other visits is harder to extract, but if it's essential, there is a way. See: [https://support.mozilla.org/en-US/questions/981055 Recalling a page from History erases the old history date. Any way to retain that older history entry along with the current one?]

  • Installing 10.4 to new disk.  Everything works fine, until there is approximately 1 hr. 36 min. left, when it freezes.  I can't get the disk out.  Suggestions?

    Please help me get the disk out!

    Depress the mouse button during startup should eject the disc.
    Are you using a retail Tiger installer (black color) or an installer (gray) from another model Mac?
     Cheers, Tom

  • How can I get the most out of Siri?

    I searched for a Discussion where folks shared ways they have discovered to get Siri to provide information and functionalities of value.  Maybe such a discussion is out there, but I couldn't find it...at least not at the level I wanted and not in the Apple Support Community.  I apologize if I missed it.  Just let me know.
    Here is what prompted this.  Our family was traveling up the east coast recently.  A lot of interstate driving.  A lot of "Dad, I have to go to the bathroom...BAD!"  I thought I had the solution to these emergencies with my iPhone 4S and Siri.
    Question Attempt 1:  "Siri, where is the next Rest Stop?"
    Answer:  "I don't know.  Good luck."  (Or, something like that.)
    Question Attempt 2:  "Siri, where is the next Service Area?"
    Answer:  "I still don't know."  (Or, something like that.)
    Question Attempt 3:  "Siri, where is the next Service Area on the New Jersey Turnpike?"
    Answer:  "If I've told you once, I've told you a thousand times, I have no clue."  (Or, something like that.)
    Question Attempt 4:  "Siri, where is the nearest Burger King restaurant?"  (I knew all the Service Areas on the NJ Turnpike had Burger King Restaurants.  I thought this was a clever way to get Siri to spill the beans.)
    Answer:  "Here is a list of the nearest Burger King restaurants."  (Siri provided a list of Burger Kings.  All required getting off the interstate.  None were closer than 15 miles away.  None were located in Service/Rest Areas.)
    I mile later, we passed a Rest Stop on the NJ Turnpike!  It even had a Burger King.  OMG!  Was Siri on drugs or something?
    So, that's an example where either Siri's functionality clearly was lacking, or I simply did not know the way to ask the question to get the information I needed.  That's what I'm hoping this discussion will provide.  Ways to get Siri to do the things it can do, and provide information it can provide.
    BTW, we tried this Rest Stop game from North Carolina to New York on several interstates.  Struck out everytime.
    On the other hand, if a plane flew overhead we had no trouble getting Siri to tell us what flight it was.  "Wolfram Alpha, what plane is flying overhead right now?"  Worked every time.  Go figure.

    Dear fromsouth,
    Oh dear...I had no intention of being disrespectful.  However, as I look back at my language used in responding to you, I now see how you could have interpreted things that way .  I am a physicist and have not taken a course in writing since a junior in high school.  Let me say I am well beyond high school age at this point.  That lack of writing skill can haunt me, as it has done here.
    So, before I say anything, please forgive my choice of language in responding to you.  I DO appreciate very much folks who respond to questions I ask on this forum.  It takes time and thought.  Those are gifts.  Thank you very much, SINCERELY, for taking the time and thought to respond to my question.
    I too do not know how Siri works.  I was throwing out well intentioned, but poorly worded, questions and hypothesis in response to your post.  You are right, 10 seconds is not a lot of time.  We can only guess at what magic Siri is performing during that 10 seconds.
    Moving back to the beginnings of things, I still think that there may be ways to word questions to Siri to squeeze answers out of her that would normally produce, "I do not know" responses.
    For example, as I mentioned above, I read elsewhere that if you ask Siri, "Wolfram Alpha, what plane is flying overhead?" you can get Siri to tell you the airline, flight number, altitude, etc. of that plane.  Who would have guessed that!?  (Even though Wolfram Alpha is quite a "smart" fellow himself. :-))
    You ABSOLUTELY did not waste my time.  Your post made me think.  I appreciate that.
    My Bad.  Please accept my apologies and have a Wonderful Holiday season.
    Mr. Luigi

  • Ibook g4 has died with a dvd inside.  How can I get the dvd out?

    Have an ibook G4 at work. The computer will no longer turn on. Seems like the hard drive has died because the battery is still lighting up. I have a dvd in the computer, though. How can I get it out when the computer won't boot up?

    HI,
    Even though the iBook won't boot, try the suggestions here just in case.
    How to eject your disc
    If you have another Mac and a Firewire cable, you may be able to use Target Disk Mode to eject the disc in the iBook. How to use and troubleshoot FireWire target disk mode
    Carolyn

  • Satellite Pro M70: Can not get the TV OUT working

    I have connected my laptop to my TV via the TV-OUT socket and a 4 pin S-Video lead. I have turned on the TV as an output in the advanced settings of my graphics card. I have selected TV via the Fn-F5 keys and I get nothing on my television.
    Can anyone suggest what I might have left out to make this work?
    The S-Video lead is new and the hook up to the TV is via a Joytech AV Control Center 2.
    The Joytech unit is operational and the video lead appears OK as the Fn-F5 key press indicates that a TV is available - this disappears as an option if I unplug the video lead from the Joytech unit.
    Any help would be greatly appreciated.

    Hi Lorraine,
    I presume that the TV is actually switched to your Joytech AV device ? I presume it gives some kind of signal so that you check that the TV can actually detect it. I once spent a happy few hours trying to use my TV in this way only to find it was switched to the composite inputs not the S-Video one. ;-)
    regards,

Maybe you are looking for