Re: Simple type conversion question

From: Tony Morris (not_at_telling.you)
Date: 09/29/04

  • Next message: Tony Morris: "Re: java ,program"
    Date: Tue, 28 Sep 2004 23:41:39 GMT
    
    

    You don't "convert a sequence of variables of type int to a String" without
    providing proper context.

    Since you didn't state your problem clearly, assumptions must be made.
    You're reading off a java.io.InputStream using the read() method and wish to
    convert the raw data to a String.
    You do this by using a java.io.InputStreamReader to convert the raw data to
    character data.
    Then you might consider writing the character data to a java.io.StringWriter
    or a java.lang.StringBuffer.

    If this assumption is incorrect, state your problem clearly.

    -- 
    Tony Morris
    http://xdweb.net/~dibblego/
    

  • Next message: Tony Morris: "Re: java ,program"

    Relevant Pages

    • Re: [PATCH 1/5] power: RFC: introduce a new power API
      ... The problem isn't in the PSY class. ... Given that that string is small enough, ... authors to get their custom sysfs knobs into the list of sysfs knobs, ... I'm recalling question about raw data. ...
      (Linux-Kernel)
    • Re: HELP to separate 5 numbers into 5 separate columns
      ... data into an excel sheet, BUT one piece of the data has a string of 4 or 5 ... numbers and i need to separate those numbers so that each single diget take ... Here is an example of the raw data in notepad ... You will note that the raw data contains a string "72620", ...
      (microsoft.public.access.externaldata)
    • RE: MD5 HASH Encoding Problem
      ... Here's a quick code snippet that will take your raw data, ... Dim strMD5 As String ... "Shaun Merrill" wrote: ... > Public Function MD5FileAs String ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Weired DeviceIoControl Behavior...Can anyone Explain?
      ... >I have tried outputting the raw data but I think there is a Null character ... > after the first character so it NEVER outputs the whole string. ... The raw data is not a string. ...
      (microsoft.public.win32.programmer.kernel)