System line separator under Mac OS X

Unfortunately I don't have a Mac available to test on. Can any Java/Macintosh experts answer these two questions for me?:
1. What's the System line separator under OS X? Still "\r"?
2. What line separator is used by OS X implementations of PrintWriter? (That is, what line separator will an applet running on OS X send across the Internet if you use a PrintWriter to write to a Socket?)
Thanks!
--Mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

It doesn't help. I'm sure that if you thought about it for a bit you'd figure it out, but here's the reason: I'm not coding the client side, I'm coding the server side. Because we're using NIO -- no Streams, ByteBuffers -- details like line separators which would otherwise be transparent are now potential issues. Currently client applets on Windows and Linux are connecting fine, but, those on OS X are not. OS X clients used to work before we switched to NIO on the server. One thought is that the glitch could be because of the different line separators, which, before our change to NIO, were translated for us automatically by the Streams we now no longer use. Dynamically determining line separator at runtime would be wonderful if my code ran on the client, that is, the OS X machine. But, it doesn't. Thus, my question.
Now, if there's anyone on OS X who can answer from knowledge, I'll be very grateful. Please note though the question is "what's the line separator on OS X", it's not "what's the best way to determine a line separator". Many thanks.
--Mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • How to configure Team explorer 2010 command-line tool in Mac x os. configure shell or system path to include the folder to which (TF client) unzipped archive available.

    How to configure Team explorer 2010 command-line tool in Mac x os.
    Hot to configure shell or system path to include the folder to which (TF client) unzipped archive available. I am new to Mac X OS. Please help.

    Dmitry,
    Thanks for the great writeup!
    I think I've got my universal instant client libraries built correctly.
    I too am using MacBook Pro but I'm getting stuck at building the 32 bit oci8.so
    First problem is my pecl download (ver 1.4.1) did not contain a "configure" file so ./configure failed.
    I used configure from /sw/....... to try to continue.
    Second problem. Using existing configure from /sw/.... I used an appropriate variation of your example command
    (./configure --with-oci8=instantclient,/usr/local/oracle/instantclient_10_2 && make).
    Things look like everything ran OK but The output does NOT include an oci8.so file
    So I guess my question is: Which "configure" should I be using? And if it is not the one on the system under /sw/...
    where would I get it since it doesn't come in the pecl download?

  • Load a new URL from command line under Mac OS X 10.5

    Under Mac OS X 1.05: if Firefox is already running and I type (in a Terminal):
    /Applications/Firefox.App/Contents/MacOS/firefox-bin http://google.com
    a pop-up comes out and complains that "Firefox is already running". The behavior under Linux is load the requested URL in a new tab|window.
    I have also tried *documented* options such as "-new-tab" and "-remote", but I get the same error.
    This only happens when Firefox is already running.
    Is there a way to load a new URL from the command line if Firefox is already running, under Mac OS X? I have tried Mac's open(1), but it does not get along well with Tab Mix Plus, so it is useless for me.
    I think that this difference in the behavior between Linux and Mac's version is very very very annoying for developers and users!

    open -a Firefox.app http://www.google.com

  • How can I get the the system property line.separator??

    hi all,
    the system property line.separator .
    the PrintStream's function println uses this properly for next line.. I dont want to use this function. and '\n' does not work exaclty as "the system property line.separator" works..

    System.getProperty("line.separator") oughta do it :-)

  • Why does Acrobot Pro no longer deliver correctly PDF printed results under Mac OS 10.4 and 10.5 ?

    Hello!
    When printing with Panther (Mac 10.3.9), my PDF printouts were always correct. Now, under Mac operating systems 10.4 and 10.5 the printouts from the ink jet printer are unusable – they are by at least 15% too dark, dark areas are slurred and oversaturated (all data RGB, CMYK)
    - when compared to the print preview in Acrobat, InDesign or Photoshop
    - compared to soft proof resp. print preview representing the ICC paper profile
    - compared to the output from Photoshop, i.e. by opening the PDF file in PS to be printed under the same parameters
    - compared to the PDF files which were printed under MAC 10.3.9  which are in line with the view on the screen and the printout made from the PDF opened under Photoshop
    - i.e. Under Panther printout work, as generally under Photoshop – even under 10.4 and 10.5. According to my information, it also works under Windows XP.
    The problem I am talking about occurs under an RGB print workflow with mixed data, RGB and CMYK, converted into the ICC output content or embedded profiles, self-created PDF files or official test charts.
    It does not make any difference where PDFs came from (InDesign-Export CS2/3 or Postscript / Distiller) or which output profile or paper was used. The problem started once I had installed 10.4 on my G4 (Acrobat 7). The same under Acrobat 8 and 9 as well as under the Intel-Mac and Acrobat 9.
    The only solution I have at the moment is an external bootable hard disk operative under Panther OS to generate correct PDF printouts now.
    Thank you for your help,
    Peter!
    Epson 2100 ink jet, Adobe CMM, Printout under Acrobat pro 9.3.2, unseparated RGB
    Color management from application, printer color management de-activated
    G4 under Mac OS 10.4.11, Adobe CS2 / Acr. 9, Apple Cinema LCD
    MacBookPro 2.5 GHz under Mac 10.5.8 and CS3, NEC LCD 2690 WUXi
    Monitors calibration by BasiCColor Display 4.1

    First try downloading the latest Driver for your printer.
    then go to printer Utilityand delete the current listing for your printer. Quit Printer Utility
    next install new Driver downloaded from Manufacturer
    finally go back to Printer Utility and add the print Driver for your Printer.
    Now open Acrobat.
    choose a Document that you have been trying to print causing issues
    print one or two pages of the document, choose pages that seem to cause the most problem.
    check results.
    if still an issue try the following:
    adjust the items in one of these windows:
    (Note I am using my HP DeskJet 990cse as example- Should be similar though)

  • Line separator for text files

    Hello
    I am writing a tab limited file which gets its data from a string[][] array . When i try opening the file its messed up with square blocks in notepad and looks great with wordpad. I do know that Unix has '\n' as the line separator, whereas windows has '\r\n' and mac has '\r'.
    The problem is the file is created on unix system, but its opened on windows or mac systems. Does anyone has a suggestion how can i fix this. I did tried using 'line.separator' but that doesn't help..which is obvious since it uses the unix separator.
    Please let me know if anyone can help
    I am writing to the file using PrintWriter
    thanx

    isn't there a way just to know whats the line
    separator used in the original file?The following will check out the line separator of a file..
    final public class TestSeparator{
    public static void main(String[] args) throws Exception{
    java.io.BufferedReader br =null;
    int k=0x0,temp=0x0;
    try{
    br =new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream("TestSeparator.java"),"UTF8"));//file and encoding are arbitrary
    while((k=br.read())!=-1){
    if((temp==(char)0xd)&&(k!=(char)0xa)) System.out.println();
    if(k==(char)0xd||k==(char)0xa){
       if(k==(char)0xd) {
          System.out.print("r");
       if(k==(char)0xa) {
          System.out.print("n");
        if(temp==(char)0xd||k==(char)0xa) System.out.println();
        temp=k;
    }//end of while
    System.out.println("");
    }finally{
         if(br!=null) br.close();
    }

  • Setting the default line separator

    I have just installed CF9 on a Windows sever and I need the default line separator to be a CRLF (CHR 13 then 10).
    The JVM running CF9 has the default line separator set as CR (CHR 13).  Which I find odd considering the default on windows should be CRLF.
    I have searched and searched and can find nothing. I know the JVM command line should look something like: "-Dline.separator=".  The only problem being I cannot work out for the life of me what should follow the equals sign.
    I am sure I can't be the first person needing todo this.  I would appreciate any help you can give me.
    Cheers

    Thanks for the reply Jochem.
    Unfortunately no dice.  I was pretty sure I tried that, but I went ahead and tried the following again:
    -Dline.separator=\r\n
    -Dline.separator="\r\n"
    -Dline.separator=\\r\\n
    -Dline.separator="\\r\\n"
    None of these variations work.  Either the literal string "\r\n" is used to seperate lines, or I get a Jrun applet error trying to run and cf page.
    So you understand how I am testing these.  I am editing the jvm.config.  Restarting the cf service.  Going to "Java and JVM" under system settings and hitting submit changes, so that the jvm.config is recreated using the new line separator.
    But if you have any ideas I am all ears.
    Thanks

  • Under Mac OS 10.5.8, itunes 10.6.3 not running

    Under Mac OS 10.5.8, iTunes 10.6.3 not running, demanding Quicktime 7.5.5 or higher. Quicktime 7.6.4 installed according to 'About this Mac,' but QT Player is 7.2.1. How do I fix this so I can use iTunes?

    QuickTime 7.5.5 for Leopard - http://support.apple.com/kb/DL27
    QuickTime 7.7 for Leopard - http://support.apple.com/kb/dl761
    = New version of Quicktime installed but application reports it needs to have that version installed =
    Open Application > Utilities > System Profiler and check the Quicktime version in Frameworks vs. the version in Applications.  One person had re-installed their operating system.  It had kept the newer Player application but had reverted to an earlier version of the underlying support framework files which many applications utilize.  Re-installing Quicktime 7.7 took care of the problem.  Do this manually, not with Software Update.

  • MacBook Pro to TV under Mac OS?

    Folks ...
    I just bought a MacBook Pro i7 ... all's well. I can even connect to my Samsung plasma flat screen (40") TV using a Thunderbolt adapter and appropriate cable - provided I'm running Windows 7.
    Under Mac OS 10.6.7 what I see is the original garish pink screen wall paper (despite having changed this on the Mac) ... and NOTHING else.
    Obvious solution is to double boot to Windows ...
    But anyone know what's going on here under Mac OS??
    Thanks
    Simon

    This is call extended desktop.  You can drag an application off the right side of your screen and it will appear on the TV.  The arraignment is set in System Preferences > Displays > Arraignment tab.  From here you can also set which screen will contain the dock and menubar.  Drag the little white bar over to whichever screen you which to be the primary.
    Also you can set "mirror mode" by pressing CMD F1.
    Regards,
    Captfred

  • XML Document to String - Line Separator problem

    I�m facing a problem with line separator while converting a Document object to String.
    Scenario: I get an input XML having line separator say \n (hex: 0A).
    When I create the output XML using Transformer, the line separator is still \n.
    I have a requirement which makes me convert the transformed Stream into a Document.
    When I try to get the String/bytes from the Document, my line separator is now �\r\n�(hex 0D0A), which is my system�s System property �line-separator�.
    I want to keep the line separator same as that was in input string. So, if the input has the separator has \n, output should have the separator as �\n� and if the input has it as �\r\n�, output should have the same.
    i.e. my hex output should match the hex input.
    Any pointers in the direction are welcome.
    Thanks in advance.

    Can I infer that the parser has changed my document
    line separators when I load it into a Document?
    If yes, is there a way to prevent that from
    happening?I don't really know. Since the XML recommendation says that a parser "MUST" do line-break normalization, I would expect that it does. And I wouldn't design systems that use specific non-XML-approved line endings as a feature, either.

  • Problem under Mac OS X with very long commands

    Hi,
    in one app. I have very long commands, this make problems under mac os x (sdk 1.4.2)
    it works under Lin and Win, only under Mac OS X it wont work like it shoud.
    is there a possibility of arise this "max length" ?
    sample:
    http://matrix.phileon.de/java_mac.html
    thx!
    phileon

    It seems as he didn't like the last entry of the classpathhuh, i always thought of MacOS X as a she..

  • Classic Apps Disabling Monitors Under Mac OS X?

    I'm running into an annoying display issue with some of my Classic applications when running them under Mac OS X. Somehow, these apps are able to break Mac OS X's ability to access certain displays the next time I boot up the machine.
    The only way to restore access to my displays is to first boot into Open Firmware using the "Command-Option-P-R" key combination, followed by going to the terminal and entering ' sudo nvram boot-args="romndrv=1" ', and then rebooting a second time.
    What's disturbing me about this issue, is that it seems like Classic apps still have the ability to alter system level settings when running under a parent OS. This seems like a huge security risk to me.
    Any thoughts?
    My setup is a Power Macintosh G4/400MHz AGP with an OEM ATI card and an IXMicro twin turbo card, running Mac OS 10.3.9.
    Power Macintosh G4/400MHz   Mac OS X (10.3.9)  

    Hi! You may like to check that Open Transport TCP/IP extensions in the System Folder have not been disabled or moved. While Mac OS X does provide network services to Classic, Mac OS 9 running within needs to have the Open Transport extensions in order for networking to work in Classic.
    Another thing you may want to try is to set up a new location and reconfigure your network details in the Network system preferences. Classic should pick up the changes and run with it, so to speak. If the change jogs Classic into working, you can kill the old location that you used previously.
    —tonza

  • Australian daylight savings time wrong under Mac OS X 10.7

    The 'set date and time automatically' option displays the wrong time under Mac OS X 10.7 in Australia. I use Apple Asia (time.asia.apple.com) and I don't think it accounts for daylight savings time. I know I have the option the set the time manually, so it is not a large problem, However I'm just raising the issue. The time currently in Australia is 5:45pm and my computer running Lion displays 4:45pm. My iPhone running iOS 5 has no issues and displays the right time.

    markpb91 wrote:
    Coffs Harbour, northern NSW along the coast. So I'm on Sydney AES time.
    Beautiful part of the world! I have under Date and Time in System Preference marked as such
    Date and Time    South Asia (have set automatically unticked)
    Then Time Zone set for Australian Eastern Daylight saving time
                                       Melbourne - Australia    (I'm in Ballarat)
                                       With set time automatically up the top unticked
    They are the settings I have always used and my computers have always reverted to and from Daylight savings (except of course I'm in Queensland, Then I have to reset my location and remember  to set it back.
    Other than that if may come down to trashing your pref file for date and time.
    Good Luck

  • Anyconnect client under Mac OS X

    Hi,
    I've got a short trouble running anyconnect client 2.3.254 under Mac OS X 10.5.6.
    If I use it to connect an ASA 8.0.4 through a proxy (squid) it doesn't work.
    If I use Win XP, with same proxy, it works.
    If I don't use any proxy, with my Mac OS X client (on another WAN access) it works too.
    So, is anyconnect client supported over proxy server on MAC OS X ???? or did I miss something ?
    Thanks for help ;-)
    Regards,
    Olivier

    I think you can connect anyconnet client with MAC OS.
    The AnyConnect client image for MAC OSX is a DMG disk image installation package. To install the AnyConnect client on a System Running MAC OSX, follow these steps:
    Step 1 Transfer the installation package file to the desktop and double-click the file. A window opens showing an icon representing the installation package file.
    Step 2 Double-click the icon to initiate the installation. A dialog window appears asking you to select the device on which to install the client.
    Step 3 Select a device and click Next. A dialog to accept the licensing agreement (EULA) appears.
    Step 4 Accept the license agreement and click Next.
    The installation is complete.

  • CPU/memory usage of AIR application under Mac 10.4.10

    As my AIR application uses a lot of CPU/memory under Mac
    (seems better in Windows), I decide to do some basic testing. I
    create several applications with different level of complexities.
    Below is a table of CPU/memory usage when the application is simply
    sitting there. A brief description of the application can be found
    in the end of each line.
    Here are some results:
    [1] Even for an empty application, CPU usage is not zero
    (most non-AIR application has 0 CPU usage when doing nothing). Also
    the memory usage is huge, comparable to Finder on my computer.
    [2] Empty application has 7 threads running.
    [3] Indetermined progress bar costs a lot of CPU; and I guess
    any other animation costs a lot of CPU too. But if they are
    invisible they are fine.
    [4] running timer costs CPU.
    PID COMMAND %CPU TIME #TH #PRTS #MREGS RPRVT RSHRD RSIZE
    VSIZE application
    10093 adl 1.8% 0:01.85 7 100 292 15.0M 13.8M+ 22.8M 444M
    empty
    10094 adl 1.9% 0:01.55 7 100 299 15.2M 14.0M+ 23.1M 444M
    label
    10097 adl 1.9% 0:01.48 7 100 302 15.3M 13.4M 23.7M 445M
    progress bar
    10095 adl 5.7% 0:02.40 7 100 302 15.4M- 13.2M 23.5M 445M
    progress bar (indetermined)
    10125 adl 15.9% 0:03.66 7 100 304 15.7M- 13.4M 23.9M 445M 5
    progress bar (indetermined)
    10126 adl 29.7% 0:10.39 7 100 325 16.7M+ 13.4M+ 24.9M+ 445M
    10 progress bar (indetermined)
    10128 adl 1.9% 0:01.34 7 100 324 16.1M 13.7M 24.3M 445M 10
    progress bar (indetermined), visible=false
    10136 adl 1.8% 0:00.76 7 100 323 16.5M+ 13.9M+ 24.7M- 450M
    Empty datagrid
    10147 adl 1.9% 0:01.60 7 101 328 16.1M 13.8M+ 24.5M- 447M
    TabNavigator with two empty VBox children
    10138 adl 1.8% 0:01.59 7 100 372 19.4M 13.9M 27.7M 453M
    datagrid with 10000 simple rows
    10131 adl 3.1% 0:02.38 7 110 348 25.7M 19.3M 34.8M 458M 10
    Empty native windows
    10143 adl 1.9% 0:00.99 7 100 296 15.1M 13.9M+ 23.2M- 444M
    Timer, delay = 100ms, calling an empty function
    10145 adl 4.1% 0:02.35 7 100 298 15.0M 14.0M+ 23.2M- 444M
    Timer, delay = 100ms, calling function update label position
    As to my own application, it's much bigger than these simple
    ones. The CPU usually stablizes to 20% and VSIZE is about 1G. There
    is no timer running. When I leave the application open for a few
    hours, the application will eventually freeze and I have to kill
    it.
    I am wondering if there are any articles or documents
    explaining AIR's CPU/memory usage. And also if AIR is planning to
    improve the performance in the next release.

    James, thank you for the very fast answer! I did various tests on the weekend on my computer and computer of my friend.
    And I can say, that Debug flag doesn't affect memory consumption.   They still eat memory. My steps to reproduce are as follows:
    (Windows 7 32 bit)
    Photoshop CS5:
    1) set HKEY_CURRENT_USER\Software\Adobe\CSXS2Preferences\PlayerDebugMode to 0
    2*) check HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\CSXS2Preferences (just in case)
    3) Compile HelloPhotoshop example to ZXP and install via  Extension manager
    4) restart computer
    5) Run Photoshop CS5 - Memory consumption: 100 096 KB
    6) Open HelloPhotoshop and close it 10 times
    7) Memory consumption: 155 840 - 5,574 MB per one close/open
    Maybe a garbage collector is expected to run and free this memory, but it never happened in my case. The memory pool was increasing to 1 GB when I was working with one of my panels - with no documents open in Photoshop
    In InDesign I tried the same thing with HelloInDesign ( I had to close the panel completely and then open with Window | Extensions | HelloInDesign)
    Memory consumption on start: 118 516
    Memory consumption after 10 open/close cycles: 197 516
    It's 7,9 MB per one close/open
    It's the simpliest panel test. When I'm using AIR libraries the memory usage is increasing a lot faster.

Maybe you are looking for

  • To_number and scientific notation

    Hi I am trying to convert a number in scientific notation stored in a character ffield to a number. I use this statement, but gets a ORA-01722 error. What is wrong ? select to_number('1.1111111111111112E-6','9.9EEEE') from dual Preben

  • SYSBDA privilige!

    hi, when i am logging as sysdba , it is giving insufficient privileges, please tell how can i add myself in SYSDBA group, also initially i was able to log on as SYSDBA, but this problem occured when i changed the login name and password of my system!

  • Shipment Cost for different Forwarding agents in one Shipment Document

    Hi. I have an requirement, can we create one shipment type, which is based on multiple Forwading Agents, i.e suppose if we have a Route with priliminary & subsequent legs having forwrding agents different at each stage.cost has to be  calculated acco

  • Why does "Install Adobe Download Assistant" keep failing to run or install on my Mac Pro OS Lion 10.7.5

    I get the following message when trying to run the download assistant: The application cannot be installed due to a certificate problem.  The certificate does not match the installed application certificate, does not support application upgrades, or

  • Disable/suppress the TPM ownership restart

    Using MBAM 2.5 (w/ the KB2975636 hotfix). As the MBAM client is installed on new computers as part of the provisioning process, it is displaying the "Restart Required" dialog box to complete taking ownership of the TPM.  Screenshot below: I understan