What is the right stream for reading a styled text ?

I'm trying to write a code for a text processing program..
It has to have functions to save the document and reopen it...
how ever I'm trying to find the right stream to deal with the styled text.
I'll appretiate any help and would be greatful if some piece of code was attached as an example.

There was a tutorial somewhere on how to write an rtf editor. It basiocally used a jeditorpane, filled it with rtf data and saved the files. RTF is plain text (7bit ascii), like html, but the code is harder to read and nearly impossible to edit manually.
here is helloworld.rtf:{\rtf1\ansi\deff0\deftab720{\fonttbl{\f0\fswiss MS Sans Serif;}{\f1\froman\fcharset2 Symbol;}{\f2\fswiss\fprq2\fcharset238 Arial;}{\f3\froman Times New Roman;}{\f4\fswiss\fprq2 Arial;}}
{\colortbl\red0\green0\blue0;}
\deflang2057\pard\plain\f4\fs20 Hello, World!\plain\f3\fs20
\par }of course, all this is done in the background and all you have to see is the word-like document on screen.
dave.

Similar Messages

  • What is the right charger for a MacBook Pro 13"  mid 2009 model?

    What is the right charger for a MacBook Pro 13" mid 2009 model? I have two chargers for two different Mac and don't know which is  thankswhich. I'm really looking for specific details such as voltage/watts and all the rest to idenify my charger.  A link to where to web page where I could purchase the correct charger would also be very useful. Many thanks.
    All help much appreciated. THANK YOU

    Both power adapter I have are different (at the magnet end) from the one in link.
    Earlier adapters have T shaped connectors, which Apple later changed to the L shape, presumably to make them more abuse-proof. Either one is fine and the one you are using will not damage your Mac.
    Retina MBPs and new MBAs use a completely different MagSafe 2 connector which will not fit (without an adapter).

  • What is the right update for Lion OS X 10.7.5 ?Is it Lion OS X Mavericks or Lion OS X 10.8 and above?

    I bought a Macbook Air 11" in 2011. It is currently running Lion OS X 10.7.5. What is the right update for this ?Is it Lion OS X Mavericks or Lion OS X 10.8 and above?

    10.7.5 is the latest version of Lion. The next operating system that was released by Apple was 10.8.x Mountain Lion. Apple have, in the last two weeks, released a newer version of OS X - 10.9 Mavericks.
    It is a completely new operating system, not an update to Lion.
    Mavericks is available as a free upgrade (as opposed to update) via the Mac App Store in the Apple menu, but before upgrading (if you choose to) ensure that any applications you rely on are compatible with the latest OS. Also, for Mavericks to run well 4gb of RAM is recommended.

  • What is the right process for moving system to another plant

    Dear Guru,
    I have below scenario which i would like to understand what should be the right process to deal with it..
    Organization Structure.
    Company code: C500
    Business area : 500A
    Plant A500 and S500 which is under the same company code and same Business area.
    Storage location: SW01 and AW01 which are physically same location address
    I have this scenario where the user have a PO under Plant S500 which already GR and IR and the physical goods is currently placed in Storage location SW01.
    But the user realized the Material should be created under Plant A500.
    For the above case, can anyone please advice me what should be the better process instead of reversal the IV/GR/PO? and what is the right process for MM and considering also from the finance point of view?
    Thank you very much,
    Regards,
    CheeWee

    Hi
    It is the configuration issue. SOmetime it happens when you copy the Reference plant to your Plant.
    Change the setting and make it both Qty & Value if you really want to manage the stock qty with value then proceed.
    Valuation area is nothing but a Plant.
    karthik
    Edited by: Karthik on Jul 25, 2011 1:23 PM

  • What's the best way for reading this binary file?

    I've written a program that acquires data from a DAQmx card and writes it on a binary file (attached file and picture). The data that I'm acquiring comes from 8 channels, at 2.5MS/s for, at least, 5 seconds. What's the best way of reading this binary file, knowing that:
    -I'll need it also on graphics (only after acquiring)
    -I also need to see these values and use them later in Matlab.
    I've tried the "Array to Spreadsheet String", but LabView goes out of memory (even if I don't use all of the 8 channels, but only 1).
    LabView 8.6
    Solved!
    Go to Solution.
    Attachments:
    AcquireWrite02.vi ‏15 KB
    myvi.jpg ‏55 KB

    But my real problem, at least now, is how can I divide the information to get not only one graphic but eight?
    I can read the file, but I get this (with only two channels):
    So what I tried was, using a for loop, saving 250 elements in different arrays and then writing it to the .txt file. But it doesn't come right... I used 250 because that's what I got from the graphic: at each 250 points it plots the other channel.
    Am I missing something here? How should I treat the information coming from the binary file, if not the way I'm doing?
    (attached are the .vi files I'm using to save in the .txt format)
    (EDITED. I just saw that I was dividing my graph's data in 4 just before plotting it... so It isn't 250 but 1000 elements for each channel... Still, the problem has not been solved)
    Message Edited by Danigno on 11-17-2008 08:47 AM
    Attachments:
    mygraph.jpg ‏280 KB
    Read Binary File and Save as txt - 2 channels - with SetFilePosition.vi ‏14 KB
    Read Binary File and Save as txt - with SetFilePosition_b_save2files_with_array.vi ‏14 KB

  • What are the right names for the 2 OHS?

    Hi,
    Currently we have 2 options for an HTTP Web Server for APEX:
    - An Oracle HTTP Server (OHS) from the database companion CD.
    - An Oracle HTTP Server (OHS) from the Oracle Application Server.
    The first OHS is based on Apache 1.3.x and the second on Apache 2.0.x.
    What are the right way to reference them so people know what your are talking about? In the manuals they are just called OHS but since they are not the same I would like to distinguish them some way. What do you call them?
    Regards Pete

    OK now I think got it:
    OHS from the database companion CD and from the Application Server are both based on an Apache 1.3.x HTTP server.
    On the Oracle Application Server companion CD is an OHS based on an Apache 2.0.x HTTP server. This release does not contain the mod_plsql module an can therefor not be used for APEX.
    Regards Pete

  • What is the right name for Apple Maps.

    What is the exact name for Apple Maps. I cannot find on in the app store written by Apple. I want to make sure i get the real thing or else I guess its Google!

    Thanks Andy I did not know that. But how can I get it on an i-phone 5S. Turn by turn directions on a desktop of lap top are no good when you are driving.

  • How do I find out what is the right RAM for my macbook?

    Hey I've been trying to upgrade the Ram for my Macbook but many people said to make sure I get the right one.
    Can anyone tell me how\what to do to get the right one?
    How do I know what is the right one and what's not?
    I don't wana make mistake, cuz it is expensive.
    thankz

    hey thank you very much for your help!!
    At first I didn't get it but now I do
    wo00 hoo0!
    am so happy right now!!!
    n_n

  • What is the right synatx for db_hotbackup?

    db_hotbackup has -h -d -l options. if i have all db and log file under one directory, which is env home. shall i do
    (1) db_hotbackup -h <dir> instead of
    (2) db_hotbackup -h <dir> -d <dir> -l <dir>
    because -v show that db_hotbackup actually copy file multiple times with (2).
    so which one is really correct? or none is ok?
    thanks!

    [email protected] wrote:
    the related documentation actually has a typo on explaining -h usage.Yeap, you are right about that one, will change.
    [email protected] wrote:
    more questions, can we run this command while db is under use with new create/update/delete going on? what is the requirement?Don't worry about that. The advantage of a hot backup is that applications may continue to read and write the databases while the snapshot is being taken. The disadvantage of a hot backup (instead of standard backup) is that more information must be archived, and recovery based on a hot backup is to an unspecified time between the start of the backup and when the backup is completed.
    [email protected] wrote:
    also i noticed that this command will copy all the log files and then removed unnecessary ones. can it skip coping all logs? i need to copy it to a networked file system and speed is my concern.You have two options if speed is your concern. One would be to use the "-c" option, as I said in the previous post. You can archive the log files by using " [db_archive|http://www.oracle.com/technology/documentation/berkeley-db/db/utility/db_archive.html] ". For more details on that, please visit [Log file removal|http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/logfile.html] and [Database and log file archival|http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/archival.html] documentation pages.
    The other thing you can do is to run db_hotbackup with "-u" option, as this will just copy the new log files.
    Both of them should work and decrease the time needed for db_hotbackup to complete.
    Bogdan

  • What is the right driver for iPhone 4 for iTunes 10.2.1.1

    I upgraded my itunes to 10.2.1.1 on Windows 7 and tried to upgrade my iPhone IOS to 4.2.1. Unfortunately, the apple recovery iBoot driver will not load and my iPhone has an USB cable icon pointed to an itunes icon and will not start.
    I see four drives Apple recovery iBoot USB driver 6.0.9999.52, 6.0.9999.53, 6.0.9999.55 and usb composite. All these drivers failed to load into Windows.
    What is the Apple recovery usb driver and how do I get the driver loaded so, y iPhone can start up?

    Jac -
    --Tom asked "what format are you capturing?"
    1. What camera (that the Church owns?) are you using now? Does it record to a small Memory card or to tape? -- What make & model is it? HD or SD?
    2. If the camera is storing to a media card, you can (a) copy the contents of the card to a thumb drive attached to any laptop at the church, take it home and import into Final Cut X there or (b) borrow the media card(s) and take it/them home.
    3. What laptop computer do you and/or the Church presently own? What is the operating system version? How much memory, size/type of internal Storage? Any external hard drive storage? You mentioned that you own a Mac Pro at home. What model? (Apple Menu/About this Mac/System Information) What are its specifications?
        Almost any computer would be able to simply copy files using the finder - without using Final Cut Pro X for capture at the Church.
      One can purchase 128 GB., USB 2/3 thumb drives for about $60 and up.
        If your Church's camera is a Tape based Camera, then you could just take the tapes home. No? "Capture" at home. Yes?
       You are currently capturing to an esata drive? which drive? which model Macbook Pro do you own?
       Finally, is your Church going to be purchasing whatever new equipment that you may need?

  • What is the right macbook for me?

    So I convinced my mom to get a macbook, but the next problem is what macbook is right for me?
    I will use it for school work :
    I will use it for:
    - Word proccessing
    - portability
    - slideshows
    - programming in xcode and in Java
    - Gaming
    - Music
    - Developing games
    So can you please tell me which one is the best for me

    I don't think that the OP would want 4GB of RAM either.
    The price I quoted was for 8GB of RAM and 256GB of flash storage.
    I'm not sure why you'd say that the user wouldn't 'need' 256GB of flash storage - that's a minimum starting point. Far too many people with 128GB and running out of storage space, having to rely on external devices -> which rather defeats the purpose of having an Air in the first place.
    Clinton

  • What is the right iTouch for ABA data collection, filming, behavior apps, etc?

    I am a behavior specialist in a public school and currently I am looking to write a grant for some iTouches to take ABA data, film students for video modeling, and apps such as behavior Tracker and things of that nature. I am not sure what the best iTouch is for my situation (I am trying to be economical, but get what I need.) Plus I have to write an itemized list of expenditures for the iTunes. Any help, esp. from people who use iTouches for th is reason) would be greatly appreciated.

    There is only one model of iPod touch currently offered. The only difference is storage capacity, and if you plan to be taking videos of students, having more capacity would be beneficial; get as much as you can. I'd ask at least for 32GB versions in the grant.
    Regards.

  • What's the right price for my ugrade?

    I'm eligible to upgrade my featureless Choc Touch, debating between the new iPhone and the  HTC Thunderbolt, as we bought one 2 months ago for our 2nd line. There is some advantage to have two identical phones, yet as a techno geek, it would be nice to play with the iPhone too.
    In trying to upgrade on the Verizon site, I can get the iPhone for $199 - my $30 NE2 credit, not bad.
    Now for the HTC Thunderbolt, the splashy ad on the Verizon main page has it for $149 with an extra extended battery.  (We paid $249 2 months ago.)  Now here's where it get's interesting:  if I start thru the upgrade process for my Touch, the TB goes into the cart as $249 and doesn't show my $30 credit.  Not so good.  If I just shop on Verizon without going thru the upgrade sequence, it's only $49, because of an online $100 promo.
    So what's the real price? Can't tell if Verizon would like me to upgrade, are they discontinuing the Thunderbolt, or just indifferent to long time customers?
    M

    53dville wrote:
    I'm eligible to upgrade my featureless Choc Touch, debating between the new iPhone and the  HTC Thunderbolt, as we bought one 2 months ago for our 2nd line. There is some advantage to have two identical phones, yet as a techno geek, it would be nice to play with the iPhone too.
    In trying to upgrade on the Verizon site, I can get the iPhone for $199 - my $30 NE2 credit, not bad.
    Now for the HTC Thunderbolt, the splashy ad on the Verizon main page has it for $149 with an extra extended battery.  (We paid $249 2 months ago.)  Now here's where it get's interesting:  if I start thru the upgrade process for my Touch, the TB goes into the cart as $249 and doesn't show my $30 credit.  Not so good.  If I just shop on Verizon without going thru the upgrade sequence, it's only $49, because of an online $100 promo.
    So what's the real price? Can't tell if Verizon would like me to upgrade, are they discontinuing the Thunderbolt, or just indifferent to long time customers?
    M
    For some reason, when upgrading online, the NE2 discount does not get taken off. You'll have to call Customer Service after upgrading online and have them take it off. It might be better to just upgrade in store, as the discounts are the same amount, just one has a mail-in-rebate and one is instant.
    As for the iPhone, if you're a "techno geek" that will do nothing for you. The iPhones are super user-friendly and made for those who aren't so tech savvy. I would go with an Android - MUCH more fun to play with.

  • I have Firefox 3.0.10 and cannot seem to find the right plugin for reading pdfs. I've installed Adobe Reader but it doesn't work. Help.

    I cannot seem to find or install a plug in for reading pdfs in the browser window. I get that yellow bar telling me I need a plug in and click to install but nothing happens or changes

    You're going to need an '''older version''' of that extension from here: <br />
    https://addons.mozilla.org/en-US/firefox/addon/7518/versions/
    Firefox PDF Plugin version 1.1.2 = for 3.0.x and 3.5.x versions <br />
    The latest is only for Firefox 3.6.x versions.
    '''Or''', you could upgrade to a newer version of Firefox!

  • What is the right product for the electronic form?

    I need your help to choose an Adobe product.
    I need a product that I create an electronic form as a purchase order and when necessary, open the source file, fill the fields and saved in electronic format with the fields filled. What Adobe product does that?
    I do not need a product to the customer, is for internal company use.
    Thanks in advance.
    A. Carvalho

    Todd,
    Thanks for the reply.
    One question more: FormsCentral can be used for offline use, without relying on the internet or always depends on an external access?
    Thanks in advance
    A.Carvalho

Maybe you are looking for

  • My iTunes background has gone gray and black. What did I do and how do I fix the issue?

    My iTunes background has gone gray and black. What did I do and how do I fix the issue?

  • Justify text in Acrobat X

    I just switched over to Acrobat X. I am having trouble finding the spot to justify the text inside of a text box. Help!

  • Please help me, boolean function

    Hello everyone, this is my first post in this forum. I have this function but I cant get it to work because I get this "missing return statement". Im desperate now, I cant figure how to fix it. Please help me. public static boolean es(String inst) { 

  • Display large dataset are slow

    Hello, first of all here are my situation. im using flex sdk 3.5 and have a simple combox component. i created a new arraycollection with around 17.000 records (the structure are {id:1,name:"...."},{id:2,name:"...."},{id:3,name:"...."},....) everythi

  • Errors in Call Transaction

    Hi all, In my program I am trying to handle errors in call transaction method using bdcmsgcoll and format_message.To check this I have given some false data like trying to create materials which are already in mara tables. The data is not updated in