Is there an object like StringBuffer, but for binary data?

I like the performance of StringBuffer, it's very fast when I use the indexOf() and lastIndexOf() methods.
Is there an equivalent buffer object for binary data so that I can quickly search for byte sequences fast instead of looping through it?
Thanks.

I like the performance of StringBuffer, it's very fast when I use the indexOf() and lastIndexOf() methods.You mean fast as in O(n)?
Is there an equivalent buffer object for binary data so that I can quickly search for byte sequences fast instead of looping through it?A ByteBuffer might be useful, though you will have to loop - (thats what StringBuffer does)

Similar Messages

  • Are there any apps like outlook but for the ipads?

    are there any apps like outlook but for the ipads?
    I want to manage my calendars appointments outlook is perfect but is it compatable for ipad

    Yes Outlook is Compatible for iPAD, but you have to buy it as an additional APP. However you can download something called "iCloud Control Panel" for Windows Machine & Install it. This would integrate all your Windows Calendar in Outlook to iCloud.
    Then enable iCloud in your iPad. All your contacts & calendars would sync automatically to your outlook on the windows machine. You can actuallu configure "Mail" app in the iPad to your exchange server.

  • Are there any tcode like MD04 but for a list of material or material group

    Hello Experts,
    Some users want to have a list of dynamic stock (like  MD04), but for a list of materials or material group.
    Are there reports or standard transactions  for that? Or must make a specific?
    Thanks in advance.
    Said

    You want see teh PO number or req number etc but you will see the stock of open order etc.
    you want get exactly like MD04.........
    either you have to develope the custom program
    or use MD04 collectively based on MEP controller

  • Is there a software like flash player for ipad.what software do I exactly need in order to play videos from websites?

    Is there a software like flash player for ipad.what software do I exactly need in order to play videos from websites?

    NKafafi88-
    There may be a couple Apps that may help, but I understand they don't work very well.  The best solution would be to contact the owners of the websites and let them know they need to update their site.
    The alternative I use, is to download the problem video onto my computer, and convert it to M4V or MP4 format using a program like HandBrake <HandBrake>.  Then it can be added to iTunes and synced with the iPad.
    Fred

  • Is there any tool like hibernate/ibatis for abap

    hi all,
    is there any tool like hibernate/ibatis for abap.  I want to exactly know whthr there is any object relational mapping tool for abap development.
    is object based services a object relational mapping tool ?
    thanks in advance
    bye
    babu

    No. Many people use Jasper Reports (http://jasperreports.sourceforge.net/) for their reporting. It's free and opensource. You define your reports in xml and you can create text, html and pdf reports.
    You can also try to use html for reporting. I've used it on a project with pretty good results. The benefit is that you probably don't need to learn a new tool/language.
    We generated the html using velocity, layout was done using css. You can remove the default headers, footer and page margins added by internet explorer by setting some registry keys:
    [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup]
    "header"=""
    "footer"=""
    "margin_bottom"="0.1"
    "margin_left"="0.10"
    "margin_right"="0.10"
    "margin_top"="0.1"

  • Where can i find more web cam effects like youcam but for mac?

    where can i find more web cam effects like youcam but for mac? i want effects to improve my web cam imige

    Hi Hans,
    I know the above address you offered but those are
    not downloadble.So do what I do .... CTRL-S (save page)
    As an Oracle trainer, I consider the OBEs to be very important. I doubt that Oracle will get rid of them.
    However, it takes time to make them. I suspect that they are created when a new feature needs to be demonstrated and the product management has the resources available.
    I just wish they would make the original set from Oracle8i available. They provided some very important basics which have long since hit the archive pile.
    I'm sure that some of the ACEs would be happy to upgrade them to Oracle10g/11g level. I know I would be willing to contribute to that effort.

  • Is any program like excel but for mac book pro so i can do a catalog list

    is any program like excel but for mac book pro so i can do a catalog list?

    A very good, no-cost option is LibreOffice:
    http://www.libreoffice.org/discover/libreoffice/
    It is compatible with MS Office including Excel.

  • Is there an application like "snag it" for mac?  Does it come with the Mountain Lion OS, or do I have to buy it separately?

    Is there an application like "snag it", which is part of the Microsoft Office suite for mac?  Does it come with the Mountain Lion OS, or do I have to buy it separately?  If it is a separate purchse, what would you recommend?

    Built-in to OS X is the ability to capture an entire screen or selected portions. Snaps are saved to the Desktop by default:
    COMMAND-SPACE-3 snaps the entire screen.
    COMMAND-SPACE-4 lets you select a portion of the screen to snap.
    In your Utilities folder is a utility called Grab that provides similar functionality and more.
    Then there are dozens of third-party solutions such as SnapNDrag and SnapzProX. You will find them and others at MacUpdate or CNET Downloads. Most have trial versions or trial times so you can test them out.

  • What kind of view object should I create for this data model?

    I have an entity that has several dates. The dates are stored in a table separate from the entity, each entity date has a date type (open, close, interview, etc) associated with it. The DBAs idea (who else of course!) was to have the flexibility to add new types of dates for entities when needed.
    So you have tables like this -
    Table: EntityTable
    Columns: EntityId, EntityName
    Table: DatesTable
    Columns: EntityId, Date, DateTypeCd
    I need to display an editable ADF form where I can update the entity and the entity dates
    The ADF form would contain something like this -------
    Entity Name: []
    Opening Date: []
    Closing Date: []
    Interview Date: []
    What kind of view object would I need to create to achieve this?

    That would be a master-detail relation 1-* between 'entity' and 'entity dates'. If your dba has set up the foreign key association in the db and you use the wizard to create the business objects, jdev pick up the relation and create the correct master detail relation in the vo layer for you.
    By the way naming a table 'entity' is not a good idea when working with ADFbc. We all talk about entities when we relate to a business object (in this case a row of a table or entity object or EO). So it's hard to distinguish the two, your specific table 'entiyt' and the common term entity or EO which can be a row of any table.
    Timo

  • Download file problem for binary data?

    Dear All,
    I have wrote a jsp file to do download page. I have used a piece of code from the JDC to this. This code will prompt the download dialog box each time user clicks the download button. The code itself will set the content type for different application. The code is like below:
    try
    java.io.File fileobj = new java.io.File(strFolder + strFile);
    response.setContentType(application.getMimeType(fileobj.getName()));
    response.setHeader("Content-Disposition","attachment; filename=\""
    + strFile + "\"");
    java.io.FileInputStream in = new java.io.FileInputStream(fileobj);
    int ch;
    while ((ch = in.read()) != -1) {
    out.write(ch);
    out.flush();
    in.close();
    } catch(Exception e)
    The code can download and handle text file correctly when it is openned in the text editor or inside the IE. But when a PDF file or Image is downloaded and openned in the PDF viewer or image viewer, it is corrupted and cannot be viewed. What is the problem? Any ideas?
    So, I wonder this code can handle binary data or not. It is seen like there is no different code to handle text and binary data in Java/Jsp.
    Thank you very much!
    Best Regards,
    Rockyu Lee
              

    Add following lines to .tld file (custom tag definition)
    <tag>
    <name>downloadbinary</name>
    <tagclass>org.rampally.DownloadBinaryTag</tagclass>
    <bodycontent>JSP</bodycontent>
    </tag>
    Add following line to JSP files.
    In JSP, keep one line of source. Make sure that there are no space and additional line feeds at the any where
    in the JSP files except JSP tags.
    <%@ taglib uri="/WEB-INF/taglibs/mb.tld" prefix="mytags" %>
    <mytags:downloadbinary />
    I am hoping that you have all required parameters such as fileName to download, etc.
    in your session or request object.
    Tag class ....
    public class DownloadBinaryTag extends TagSupport {
         public int doEndTag() throws JspException {
              // TODO: get binary data from filename or
              // binary data buffer from datase.
              // I am making it simple .. assume that it is a request parameter for
              // you test easily.
              String fileName = request.getParameter( "filename" );
              java.io.File file = new java.io.File( fileName);
              java.io.DataInputStream dis;
              try {
                   dis = new java.io.DataInputStream(new FileInputStream(fileName));
              } catch (FileNotFoundException e) {
                   // do error handling ...
                   return EVAL_PAGE;
              BinaryUtil.sendBinaryFile( dis, (HttpServletResponse) pageContext.getResponse(), contentType );
              return EVAL_PAGE;
    public class BinaryUtil
         static public void sendBinaryFile( DataInputStream dis,
                                  HttpServletResponse response,
                                  String contentType ) {
              try {
                   response.setContentType(contentType);
                   String fileName="test.pdf";
                   response.setHeader("Content-disposition", "inline; filename=" + newFileName );
                   ServletOutputStream sout = response.getOutputStream();
                   int len;
                   byte[] data = new byte[128 * 1024];
                   while ((len = dis.read(data, 0, 128 * 1024)) >= 0)
                        sout.write(data, 0, len);
                   sout.flush();
                   sout.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
         static public void sendBinaryFile( byte[] data,
                                  HttpServletResponse response,
                                  String contentType ) {
              try {
                   response.setContentType(contentType);
                   String fileName="test.pdf";
                   response.setHeader("Content-disposition", "inline; filename=" + newFileName );
                   ServletOutputStream sout = response.getOutputStream();
                   sout.write(data);
                   sout.flush();
                   sout.close();
              } catch (Exception e) {
                   System.out.println(e.getMessage());
    You may have to change 'inline' to 'attachment' if you do not want IE to inline the document.
    That's all!!.. Hope this helps...!

  • Best Datatype for Binary Data

    Hi,
    We storing a Binary Data say "€ù?" in oracle as String Datatype.
    I have formed the query in my application to insert a record which has above string as one of the String field value.
    The insertion was success but when the above string is not stored as it is but it is stored as "¿ù?" which is not a correct data.
    Is this problem is because I'm using string for storing binary data?
    Also please let me know what could be the best data type to store the binary data (like above data) in oracle.

    Justin,
    With the help of your query I identified how the bytes are stored in the memory.
    I'm having VARCHAR2 datatype of size 14 in oracle when ever i store my binary data it is storing as
    127,0,0,0,0,0,0,0....for 14 bytes -> So the binary equivalent is 011111111,00000000,00000000,...... And i'm ok with it.
    But the problem is whenever a byte is holding the binary equivalent of 128 it is storing in the oracle as 191
    eq:
    Bits: 10000000 => equivalent to 128 in decimal and it is what i want to get when i query it using select, but what i'm getting in sql query is "191".
    Really I'm not able to understand the relationship beween 128 and 191 binary values.
    I got the above detail using the DUMP sql function.

  • Data plug-in for binary data with byte streams of variable length

    Hi there,
    I would like to write a data plug-in to read binary data from file and I'm using DIAdem 10.1.
    Each data set in my file consists of binary data with a fixed structure (readable by using direct access channels) and of a byte stream of variable length. The variable length of each byte stream is coded in the fixed data part.
    Can anyone tell me how my data plug-in must look like to read such kind of data files?
    Many thanks in advance!
    Kind regards,
    Stefan

    Hi Brad,
    thank you for the very quick response!
    I forgot to mention, that the data in the byte stream can actually be ignored, it is no data to be evaluated in DIAdem (it is picture data and the picture size varies from data set to data set).
    So basically, of each data set I would like to read the fixed-structure data (which is the first part of the data set) and discard the variable byte stream (last part of the data set).
    Here is a logical (example) layout of my binary data file:
    | fixedSize-Value1 | fixedSize-Value2 | fixedSize-Value3 (=length of byte stream) | XXXXXXXXXXXXX (byte stream)
    | fixedSize-Value1 | fixedSize-Value2 | fixedSize-Value3 (=length of byte stream) | XXXXXX (byte stream)
    | fixedSize-Value1 | fixedSize-Value2 | fixedSize-Value3 (=length of byte stream) | XXXXXXXXXXXXXXXXXXXX (byte stream)
    What I would like to show in DIAdem is only fixedSize-Value1 and fixedSize-Value2.
    ´
    If I understood right, would it be possible to set the BlockLength of each data set by assigning Block.BlockLength = fixedSize-Value3 and to use Direct Access Channels for reading fixedSize-Value1 and fixedSize-Value2 ?
    Thank you!
    Kind regards,
    Stefan

  • Plugin for binary data: channels with coefficient : y = a3*x^3 + a2*x^2 + a1*x +a0

    Hello,
    I am bulding a plugin for extracting data from a binary file.
    My problem is that the scaling of the values is not defiened by a linear equation (y = a1*x + a0 where conversion is easy with Factor and Offset properties of Channel), but by a cubic equation (y = a3*x^3 + a2*x^2 + a1*x +a0) with 4 coefficients. For the moment, I performed the operation in a loop over all the values of the channel... this takes a lot of time to convert all the values!!! Is there a more efficient way for multiplying array in VBA or channels in DIADem (for Plugins!!!)...?

    Hi Ollac,
    There is no way to efficiently apply polynomial scaling in a DataPlugin.  You could create each of the polynomial component terms with an eMultiplyProcessor type ProcessedChannel in the DataPlugin, but we can't add them together with another ProcessedChannel because you can't add a ProcessedChannel to another ProcessedChannel.  If the manual cell-by-cell scaling that you've already tried is too woefully slow, then I'd suggest exposing the raw data values to channels in the Data Portal and adding the "a0", "a1", "a2", "a3" polynomial coefficients as channel properties.  Once the raw data is in DIAdem, you can use the ChnCalculate() or the older and faster FormulaCalc() command to apply the polynomial scaling in-place based on the coefficients in the channel properties.  You might want the Data Plugin to add the "_Raw" suffix to the channel names and have the scaling VBScript remove the "_Raw" suffix or replace it with a "_Scaled" suffix so you don't accidentally apply the polynomial scaling twice.
    Ask if you have questions about this,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Use httpchannel/httpservice combination for binary data

    I have a blazeds proxy configuration set up with my flex application to communicate with a RESTful webservice.
    This webservice is practically an interface to a content management system which has all types of content text and binary(audio,video,images etc) protected by HTTP basic authentication. I had no reason to use Blazeds except for its proxy capabilities to enable HTTP Authentication headers to be sent from the application to the webserver which dont work when sent directly to the server as mentioned.See related post below -
    http://tech.groups.yahoo.com/group/flexcoders/message/136576
    I send the requests through HTTPService from flex through a configured destination and it works well for all data formats supported by HTTPservice. Unfortunately HTTPService does not support binary resultformat for images,audio and video. I am aware that i should use a streaming server for audio and video data but for images I would like to go through the blazeds proxy to the webserver. Loader is the only class which is recommended to be used with images but i am not sure of how to use it with blazeds.
    Is it possible in anyway to achieve what I am trying to?
    Thanks,
    Peeyush

    Try this...
    var b:ByteArray = _dataLoaderHTTPService.lastResult as
    ByteArray;
    b.position = 0;
    trace(b.readObject());
    Bob I.

  • Ideal column type for Binary Data ??

    Hi there,
    I must store binary data of fixed length (e.g. IP address of 4/16 bytes) into a table and manipulate that table over C++ / OCI.
    The database server is running on either SUN/SPARC or LINUX/i86. The clients are running on a broad range of systems (NT/i86, LINUX/x86, SUN/SPARC, ..).
    I am worried about the OCI layer modifying char/varchar values while transmission ...
    Whats the best approach ??
    Use CHAR/VARCHAR or use the variable length RAW even for fixed length binary data ??
    Any help would be greatly appreciated,
    Tobias
    null

    I guess RAW is the best approach

Maybe you are looking for

  • Getting the default zero-rated sales and purchase tax codes

    Hi, Does anyone know how to obtain the default zero-rated sales and purchase tax codes? ie the tax exempt sale and purchase tax codes.  The OADM holds the default sales and purchase tax codes but not the default zero-rated sales and purchase tax code

  • Flashing in Windows Modes doesn't work

    I'm running Windows Vista Business, and when I try to update my BIOS in windows mode, it fails. I'm using MSI Live Monitor 3. After finding the bios (1.5), I use "windows mode" to flash. A command-line window comes up, and I can see everything gettin

  • Ungroup how do I ungroup all the windows?

    want all open windows on the task bar. Right now I only have one Firefox window SHOWING (instead of seven) and the other pages are within the grouping. Please be extremly specific....click by click.

  • How do I get logmein App to see my computer from my iPhone?

    I've been using the App logmein to access my iMac from my iPhone 3Gs. I had to reformat my iMac, and lost the App. I downloaded it again, onto my iMac, but when I try to access the iMac, the iPhone shows the iMac as 'offline'. Is there something I ha

  • PDF from SWF ?

    Hello, I have a SWF which accepts a clients text into a text input box. That text is them formatted and output into a dynamic text box. The client OK's it, and then I use Loadvars to send the data to me, however I also want an image of what the clien