Printing character by character

is there anyway in java to print stuff character by character, not just the whole thing at once like you would with system.out.println?

i got this error when i tried that, any ideas?
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9
[Ljava.lang.String;@10b62c9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • My keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random.

    my keyboard on macbook pro (laptop) is acting weird. One key is not responding at all. Have verified using Keyboard viewer and some other keys are printing the unresponsive character at random. "z" is the unresponsive character.
    Is it a damaged keyboard ?
    The laptop is just 2 months old, will Apple replace it with a new one if its indeed a damaged keyboard or just repair, I use it for official purposes so being without a laptop is not much of an option.

    No one here works for Apple, so we don't know what Apple might or might not do.  If it's a genuine defect, they will of course repair it under warranty.  It is not their responsibility if it effects your ability to work or not, so that's on you.
    If, however, they determine that the key is problematic as a result of your misuse of the laptop, then everything is on you.  And trust me, if they find a glob of dried up beer or coffee there, they will charge you.
    Your only choice is to take it in for repair.

  • Print Without Hyperlink Character Styles

    Hi,
    I have applied a character style to URLs in my document that look like links so that when I export to pdf, people can click the obvious URL link.  However, the document will also be printed and I do not want the text to have this character style applied to it (or be a hyperlink).  I thought when I exported to PDF and unchecked 'Include Hyperlinks', no hyperlink formatting would be present in the pdf, including character styles applied to hyperlinks, but I cannot seem to print without the character style being applied. 
    Is there a way to choose in the print dialog whether I want the character style applied to the text?  Or what is the easiest way to toggle between showing hyperlinks and not showing hyperlinks (including character styles) as I need to switch between print versions and electronic versions of my document?
    Thanks so much!

    Or maybe easier would be to define a second style with attributes, then use find/change to change from one to the other. Easy to go back and forth that way.

  • Problem is occurring in docx format; it is not printing "New Line" character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.

    Problem: Problem
    is occurring in docx format; it is not printing “New Line” character in extracted txt using IFilter (offfiltx.dll) while with doc file IFilter (OffFilt.dll) is working fine.
    Environment: -
    Operating
    System:
    Windows XP SP2/7
    Language:
    C#
    MS
    Office Version: - MS Office 2007/2010/2013
    Problem
    Description: -
    We
    havedocx
    file with new line character, and we are processing this file in IFilter for extracting text, and it is giving output with concatenation of lines.
    Docx
    file format (Sample.docx)
    Test this music
    Word processing
    Testing docx file
    Output:
    - Test this music Word processing Testing docx file
    Requirement:
    - We
    have requirement to get following text in particular format with New Line from docx because client is using docx format only.
    Test this music
    Word processing
    Testing docx file
    Attempt:
    We have tried a lot after changing IFilter configuration,
    but it is not giving required output. Then we saved same file in doc format (Sample.doc), which is giving required output.
    Because it is application specific problem, kindly
    assist to resolve issue on priority. We are sharing IFilter paths for extracting text for doc and docx.
    Doc Filter Location: - %systemroot%\system32\OffFilt.dll
    Docx Filter Location: - <Drive>:\PROGRA~1\COMMON~1\MICROS~1\Filters\offfiltx.dll
    Code Snippet for setting property of filter
    internal static IFilter LoadAndInitIFilter(string fileName, string extension)
                IFilter filter
    = LoadIFilter(extension);
                if (filter
    == null)
                    return null;
                IPersistFile persistFile
    = (filter as IPersistFile);
                if (persistFile
    != null)
    persistFile.Load(fileName, 0);
                    IFILTER_FLAGS flags;
                    IFILTER_INIT iflags
    =
                                IFILTER_INIT.CANON_HYPHENS
    |
                                IFILTER_INIT.CANON_PARAGRAPHS
    |
                                IFILTER_INIT.CANON_SPACES
    |
                                IFILTER_INIT.APPLY_INDEX_ATTRIBUTES
    |
                                IFILTER_INIT.HARD_LINE_BREAKS
    |
                                IFILTER_INIT.FILTER_OWNED_VALUE_OK;
                    if (filter.Init(iflags,
    0, IntPtr.Zero, out flags)
    ==IFilterReturnCode.S_OK)
                        return filter;
                Marshal.ReleaseComObject(filter);
                return null;
    Kindly
    assist to resolve this issue and also let us know if any input is required.
    For any help, we would be really
    thankful.

    Kindly
    assist to resolve this issue and also let us know if any input is required.
    For any help, we
    would be really thankful.

  • Cannot print out chinese character

    Hi All,
    I have problem with the printer. I can printed Chinese character without using SAP and from SAP when I print the Chinese character is not come out. On the paper will appear symbol ###. I don't how want to do.
    FYI, my system is Unicode.
    Thank You
    Regards,
    anang78

    Hi,
    Check the OSS note 776507 which talks about print preview for
    characters in Chinese language and print of ## characters during printing Asian languages.
    Please go through the note , as per section " Note on SAPscript/SmartForms Print Preview "
    we need to use device type CNHPLJ4 for printing Chinese character set.
    Thanks
    Jibin

  • Trying to read from a socket character by character

    Hi all,
    I have a problem with reading from a socket character by character. In the code shown below I try and read each character, and then write it to a file. The information sent to a socket sent from a file, and EOF is marked with character of ascii code 28 (file separator). However using BufferedReader.read() I get -1 forever. Is it reading only the last character to have been sent to the socket?
    As a side note, if I use readLine() (making sure the socket is sent a newline at end of msg) I can get the message fine. However, I want to be able to receive a message with 0 or many newlines in it (basically contents of a text file), so I want to avoid the readLine() method.
    Any help at all is appreciated,
    Colm
    CODE SNIPPET:
    try
    serverSocket = new ServerSocket(listenToPort);
    System.out.println("Server waiting for client on port " + serverSocket.getLocalPort());
    while(true)
    inSocket = serverSocket.accept();
    System.out.println("New connection accepted " + inSocket.getInetAddress() + ":" + inSocket.getPort());
    input = new BufferedReader(new InputStreamReader(inSocket.getInputStream()));
    fileOutput = new BufferedWriter(new FileWriter(outputFilename));
    System.out.println("Ready to write to file: " + outputFilename);
    //receive each character and output it to file until file separator arrives
    while(!eof)
    inCharBuf = input.read();
    System.out.print(inCharBuf);
    //check for file separator (ASCII code 28)
    if (inCharBuf == 28) eof = true;
    //inChar = (char) inCharBuf;
    fileOutput.write(inCharBuf);
    System.out.println("Finished writing to file: " + outputFilename);
    inSocket.close();
    catch (IOException e)
    System.out.println("IO Error with serverSocket: " + e);
    System.exit(-1);
    }(tabbing removed as it was messing up formatting)

    My guess is that the code that is writing to the
    socket did not flush it. You said in one case you
    could read it (via readln) if the writer was writing
    lines (writeln flushes, I believe). Are you writing
    the exact same data to the socket in both tests?woo hoo, I hadn't flushed the buffers alright!
    for anyone with similar problems, I was missing this from my write-to-socket method:
    output.flush();
    where output was the BufferedWriter I had created to write to the socket.
    Thanks a lot for pointing it out!
    Colm

  • Cannot transliterate character between character sets problem

    i hava a database which carset is selected none before
    when i want to get data from this database i get the error
    java.sql.SQLException: [interclient][interbase]arithmetic exception, numeric overflow, or string truncation
    [interclient][interbase]Cannot transliterate character between character sets
         at interbase.interclient.ResultSet.remote_FETCH_ROWS(Unknown Source)
         at interbase.interclient.ResultSet.getNextCursorPosition(Unknown Source)
         at interbase.interclient.ResultSet.next(Unknown Source)
    but i m getting the error when rs.next()
    so ican't use methods to encode when rs.getBytes.............

    i hava a database which carset is selected none
    before
    when i want to get data from this database i get the
    error
    java.sql.SQLException:
    [interclient][interbase]arithmetic exception, numeric
    overflow, or string truncation
    [interclient][interbase]Cannot transliterate
    character between character sets
    atcontact the driver vendor for support.

  • Efficiency of reading/writing files character-by-character

    I've been assuming that when I do a file "open for access," that among the housekeeping functions set up behind the scenes, there is some sort of buffer created, the size of which is somehow related to the logical sector size of the disc in question, so that reading or writing short pieces of text, or even single characters, doesn't cause independent physical read/write actions at the disc drive.
    Does anyone know if this is true or false? Maybe the question would be clearer posed another way. Suppose I set up a loop to read or write 1024 characters, sequentially, but one at a time. Obviously the loop will require much more time to execute than a singe read or write statement calling for 1K of text all at once. But will there be significantly more activity at the disc drive itself? Will the data be read or written on 1024 successive spins of the platter, or will it be buffered down to one spin, or maybe a couple, depending on the exact location of sector boundaries and so on?
    Thanks.

    Thanks for this. I was sure some such facility was in operation, but I couldn't find anything explicit on the question. I have a task in which I'm trying to convert what looks like incredibly badly formed XML application files into properly tagged and well-formed XML so that I can then get them through a well-designed XML parser. To decode these utter shambles requires decision logic that goes nearly character-by-character. One tutorial page I found on Applescript file I/O suggested that reading/writing character-by-character was inherently inefficient, which I can see that it is, I just wanted to make sure the inefficiency didn't go all the way down to the mechanics of kicking the disc for every single character. The description in the tutorial was ambiguous, and a little disconcerting.
    The tutorial also suggested an alternative strategy of reading an entire file at once into a string and then working with the string. But my files are megabytes long, and I wonder how efficient operations are on megabyte strings, presuming there isn't a limit on string length. Short of trying to do some complex adaptive algorithm, which I might never get working right, I'm pretty sure that keeping to the KISS principal, and just going character-by-character, is a near-optimal strategy in my case.
    Cheers.

  • Problem processing character by character

    Okay, I'm not looking for anyone to do an entire method or anything, but I'm just wondering if anyone had any suggestions for a problem I'm having that involves inputting a string into a method that would then go through it character by character and process it... it's obvious what its supposed to do when you look at a sample input...
    you'd input something like this :
    "1+5*6/2-3"
    just a straight left to right processing... no order of operations or anything. Any suggestions would be appreciated :) thanks!
    Message was edited by:
    OneWingdPhoenix

    Look at the charAt() method.
    String s = //whatever
    for(int i=0; i<s.length(); i++)
         char c = s.charAt(i);
    }

  • Character chStore =new Character(new Character('Q').toLowerCase(charStore))

    HI All,
    This code is not compiling , semi colon missing.
    Character chStore =new Character(new Character('Q').toLowerCase(charStore)));

    Thanks..
    This is what I mean to say.
    package javaProg.completeReferance;
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.IOException;
    public class Read
         public static void main(String [] args)
              char charStore=' ';
              Character ch=new Character('q');
              BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
              Character chStore;
              System.out.println("Enter your letters Enter 'q' or \" Q\" to Quit");
              do
                   try
                   charStore = (char) br.read();
                   }catch(IOException io)
                        System.out.println("Exception : "+io);
                   chStore = new Character(Character.toLowerCase(charStore));
                   System.out.println(chStore.charValue());
              while (!ch.equals(chStore));
    }

  • Comparing character-by-character

    I'm playing around with a Java implementation of a ternary search tree. (See http://www.ddj.com/documents/s=921/ddj9804a/9804a.htm)
    By its very nature, a TST must compare its keys character-by-character.
    I've got a base implementation I am happy with, and am now looking at SortedSet and SortedMap implementations, which are naturals for a TST. In order to fully support either interface, I should support creation of a SortedSet or SortedMap with a Comparator specified.
    I just want to confirm my understanding, after studying the API documentation and poking around in the API source code, that I can safely use CollationElementIterator to compare two strings one character at a time.
    Specifically, the TST stores an inserted key internally as one character per tree node. When searching, a search key is compared to nodes one character at a time, and the tree is descended according to whether the comparison yields less than, equal or greater than. I am expecting that I can store the int value of each collation element in the nodes, then compare them to the int values of each collation element for a search key. (I do not expect to reconstruct the string from the int values--the original string is referenced at its terminal node. Nor do I care in the least if the number of int values does not match the number of characters in the text string, or if they are in a different sequence than the corresponding characters.)
    If my understanding is correct, I won't have to worry about skipping over characters in a string or swapping character positions--that will be taken care of as the iterator steps through the string. Nor will I have to worry about characters that alter the sort priority of other characters. This would be quite nice.
    I would appreciate confirmation (or correction) from somone who is familiar with the classes java.text.RuleBasedCollator, java.text.CollationKey and java.text.CollationElementIterator. With preference, this would be someone who has actually used them in an application.
    How I plan to test this thing is, of course, another problem...

    The answer is "yes." CollationElementIterator is intended to be used exactly as I understood from the API documentation.
    I found my confirmation in this article:
    http://www-106.ibm.com/developerworks/java/library/j-text-searching.html
    and validation of the algorithm in this Unicode Technical Standard:
    http://www.unicode.org/unicode/reports/tr10/

  • Compare two columns character by character

    Hi
    In a form I have block A. Which contains two columns Old Value and New Value both are of varchar datatype. I want to compare Old Value and New Value character by character and display the characters which are there in New Value but not in Old Value in a different colour when this block is being called.
    Example1 :Old Value : 13-Jul-2007
    And New Value : 19-Jul-2007
    I need the output to be display in this way - 19(in different clour)-Jul-2007. Only 9 should be in different colour.
    Example2 :Old Value : - (No value Previously)
    And New Value : SI DONE
    So output to be display in this way New Value "SI DONE" should be in different colour.
    Just to hightlight the users that this is change made instead of they manually compare field by field for the changes to take note..
    Pls help me this is bit urgent. Help me to suggest any java related coding can help me or any plugins that we can call thru forms to do it.. Pls help.
    Rishi

    You take a variable i (integer type) and initialize it to 1.
    Take a loop where u'll find one by one character in loop as follows.
    DECLARE
    i NUMBER(10) := 1;
    old_str VARCHAR2(240); -- For Old String
    new_str VARCHAR2(240); -- For New String
    differed_str VARCHAR2(240) := '';
    BEGIN
    WHILE i <= GREATEST(LENGTH(old_str),LENGTH(new_str))
    LOOP
    IF SUBSTR(old_str,i,1) <> SUBSTR(new_str,i,1) THEN
    differed_str := differed_str||SUBSTR(new_str,i,1);
    END IF;
    i := i + 1;
    END LOOP;
    END;
    So, now ur extra characters in New Field will be :differed_str.
    May be u can give a msg with that string.
    Thanx,
    Cheers,

  • How to print report in Character mode using Oracle Developer 10g

    Dear,
    I migrate my forms and reports from Oracle Developer 6 to Oracle Developer reports 10g,
    We are using some character mode report for bill printing. But when i run these report through menu on Web i got error message like
    "REP-1920: Character mode runtime incompatible with DESFORMAT of PDF, HTML, HTMLCSS, SPREADSHEET or RTF"
    i don't want to change the character mode to any other mode because it effects the printing.
    so how can it possible to set the mode to character and view report on Web.
    pls. suggest me solution.

    You have to pass the PRT file name as value for the DESFORMAT and use mode= MODE=CHARACTER.
    E.g.
    http://<host name>:<port>/reports/rwservlet?desformat=dflt&mode=character&.....

  • Printing ZPL (Zebra) data to printer spooler without character conversion

    Hi all,
    We are printing shipping labels from UPS, with a process where we recive the ZPL label code directly from UPS, and we just need to pass the data to the printer to get the labels. We have already implemented this with Fedex and some custom labels, and it works perfectly. The problem with the UPS label data is that it contains non-printable characters (in the MaxiCode data field). When passed to the SAP printer spooler (see code example below), the data gets corrupted because SAP interprets these non-printable characters as printer control codes.
    I have verified this by saving the ZPL data to a local file, before printing it through the SAP spooler. I then print this raw data and compare the output with the labels printed from the spooler. The MaxiCode (the big 2D barcode) is different in these labels. UPS has also tested the labels, and rejected them because of incorrect data in the barcode.
    For printing, we are using printers defined as type "PLAIN", but I also tried using the "LZEB2" device type with the same result. The error we see in the spooler entry is this:
    Print ctrl S_0D_ is not defined for this printer. Page 1, line 2, col. 2201
    Print output may not be as intended
    The printer ctrl code differs, depending om the label. I have examined the spooler data in "raw" mode, and there is always an ASCII character 28 (hex 1C) in front of the characters that SAP think are control codes, and this is why I think these non-printable characters are the reason for the problems.
    This is the function module I use to print the ZPL data (and as stated above, this works fine for Fedex and custom labels). The ZPL data is converted to binary format before passed to the function module, but I also tried to send the data in text format with another FM, but the result is the same. I have experimented with the "codepage" parameter, and this one gives the least amount of errors, and some labels actually get through without errors. But still at least 50% of the labels gets corrupted, with log entries like above.
    CALL FUNCTION 'RSPO_SR_WRITE_BINARY'
          EXPORTING
            handle           = lv_spool_handle
            data             = lv_label_line_bin
            length           = lv_len
            codepage         = '2010'
          EXCEPTIONS
            handle_not_valid = 1
            operation_failed = 2
            OTHERS           = 3.
    Does anyone know if there is a way to send data to the spooler without character conversion or interpretation of printer control codes? Or is there any other smart way to get around this problem?
    /Leif

    I do a more direct output to the spooler, to avoid any issues with the WRITE statement and SAP's report output processing. At the same time, I insert line breaks so that the output is easy to debug in the spooler if needed. Also included is the code to to detect the escape code (ASCII #28) and to insert a control code ZZUPS in its place (you can skip this for Fedex). Here's a simplified example, but please note this is for a Unicode system, some minor changes is required in a non-Unicode system.
    CONSTANTS: lc_spcode TYPE c LENGTH 5 VALUE 'ZZUPS',
               lc_xlen TYPE i VALUE 5.
       DATA: lv_print_params TYPE pri_params,
             lv_spool_handle TYPE sy-tabix,
             lv_name TYPE tsp01-rq0name,
             lv_spool_id TYPE rspoid,
             lv_crlf(2) TYPE c,
             lv_lf TYPE c,
             lstr_label_data TYPE zship_label_data_s,
             lv_label_line TYPE char512,
             lv_label_line_bin TYPE x LENGTH 1024,
             lv_len TYPE i,
             ltab_label_data_255 TYPE TABLE OF char512,
             ltab_label_data TYPE TABLE OF x,
             lv_c1 TYPE i,
             lv_c2 TYPE i,
             lv_cnt1 TYPE i,
             lv_cnt2 TYPE i,
             lv_x(2) TYPE x.
       FIELD-SYMBOLS: <n> TYPE x.
       lv_crlf = cl_abap_char_utilities=>cr_lf.
       lv_lf = lv_crlf+1(1).
       lv_name = 'ZPLLBL'.
    CALL FUNCTION 'RSPO_SR_OPEN'
         EXPORTING
           dest                   = i_dest
           name                   = lv_name
           prio                   = '5'
           immediate_print        = 'X'
           titleline              = i_title
           receiver               = sy-uname
    *      lifetime               = '0'
           doctype                = ''
         IMPORTING
           handle                 = lv_spool_handle
           spoolid                = lv_spool_id
         EXCEPTIONS
           device_missing         = 1
           name_twice             = 2
           no_such_device         = 3
           operation_failed       = 4
           OTHERS                 = 5.
       IF sy-subrc <> 0.
         RAISE spool_open_failed.
       ENDIF.
    LOOP AT i_label_data INTO lstr_label_data.
         CLEAR ltab_label_data_255.
         SPLIT lstr_label_data-label_data AT lv_lf INTO TABLE ltab_label_data_255.
         LOOP AT ltab_label_data_255 INTO lv_label_line.
           IF lv_label_line NE ''.
             lv_len = STRLEN( lv_label_line ).
    *       Convert character to hex type
             lv_c1 = 0.
             lv_c2 = 0.
             DO lv_len TIMES.
               ASSIGN lv_label_line+lv_c1(1) TO <n> CASTING.
               MOVE <n> TO lv_x.
               IF lv_x = 28.
                 lv_cnt1 = 0.
                 lv_label_line_bin+lv_c2(1) = lv_x.
                 lv_c2 = lv_c2 + 1.
                 DO lc_xlen TIMES.
                   ASSIGN lc_spcode+lv_cnt1(1) TO <n> CASTING.
                   MOVE <n> TO lv_x.
                   lv_cnt2 = lv_c2 + lv_cnt1.
                   lv_label_line_bin+lv_c2(2) = lv_x.
                   lv_c2 = lv_c2 + 2.
                   lv_cnt1 = lv_cnt1 + 1.
                   lv_len = lv_len + 1.
                 ENDDO.
               ELSE.
                 lv_label_line_bin+lv_c2(2) = lv_x.
                 lv_c2 = lv_c2 + 2.
               ENDIF.
               lv_c1 = lv_c1 + 1.
             ENDDO.
    *       Print binary data to spool
             lv_len = lv_len * 2. "Unicode is 2 bytes per character
             CALL FUNCTION 'RSPO_SR_WRITE_BINARY'
               EXPORTING
                 handle                 = lv_spool_handle
                 data                   = lv_label_line_bin
                 LENGTH                 = lv_len
               EXCEPTIONS
                 handle_not_valid       = 1
                 operation_failed       = 2
                 OTHERS                 = 3.
             IF sy-subrc <> 0.
               RAISE spool_write_failed.
             ENDIF.
           ENDIF.
         ENDLOOP.
       ENDLOOP.
       CALL FUNCTION 'RSPO_SR_CLOSE'
         EXPORTING
           handle = lv_spool_handle.
       IF sy-subrc <> 0.
         RAISE spool_close_failed.
       ENDIF.

  • Print Bold Character in Character Mode Report

    I design report in character mode. but i want to print one filed in bold character and one column with underline. i am using epson lq-2180 printer. i tried to use printer file code but it is not working. so can anyone help me. if possible than write me the code of printer file.
    thanks

    Hi Chirag
    Use "Printer Code Before" and "Printer Code After" property against the object that you want to appear bold.
    To find out the list of printer codes, refer the manual that came along with your printer.
    Regards
    Sripathy

Maybe you are looking for

  • Ipod touch 4g- no music, and apps not working after iOS5 update

    Hi, I just updated to IOS 5 on my Ipod touch 4G, and ever since then the music library (in the Ipod) is cleared out, and none of the apps work. It's like it didn't finish updating and transferring back the data to the Ipod. When I go to plug in the I

  • Help with Alert.show()

    I need help with Alert.show(). My goal is to display a message box when a button is pressed. My program header: <?xml version="1.0" encoding="utf-8"?> <s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:

  • Keep photos old photos from deleting when sincing new ones

    My ipod has pictureson it but when I want to add new file delete pictures already there and I wanted to keep those.   Then when I download the old file new one is gone.    Help

  • Problems with servicing my nano

    can somebody please tell me how I can e-mail/talk to a human being that works for apple? i sent my ipod for servicing because it stopped working. they said they have shipped it back but it has not arrived and the tracking number the automated (no-rep

  • Syntax error in Zcontext class

    Hi, I have enhanced Marketting Attribute Search view of BP_DATA component using tcode BSP_WD_CMPWB. I have re-generated the get-I methods to get a Zcontext class but the Zclass is showing an error: ' Type LCL_VALUEHELP_FOR_ATTR_SET is unknown.' I see