Question about partial access with "infinite" partial length

Suppose you want to read partial data starting at offset 100 but you don't know the total length.
Or, suppose you want to write partial data, replacing all bytes from offset 200 to the end of the data.
One would think that calling DatabaseEntry.setPartialLength(Integer.MAX_VALUE) would do the trick... but I'm worried that this will cause integer overflow in the internals of the JE library and screw things up.
Is using DatabaseEntry.setPartialLength(Integer.MAX_VALUE) safe?

Hi,
Looks like this is answered by the javadoc for DatabaseEntry.setPartial. Please take a look and let us know if there is some way we can improve the doc.
Thanks,
--mark                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Question about Logon ticket with user mapping at BI-JAVA environment

    We're implementing BI 7.0 including BI Java and SAP EP for end user
    access.
    I have two question about SSO method when we're using BI Java.
    I know we can simply configure SSO logon ticket with BI-Java(EP
    included) and BI-ABAP through BI template installer and we already
    succeeded in that case.
    But the problem is we want to change it to user mapping SSO method for
    some our internal reason.
    After we configure user mapping SSO, we've got SSO failed error when we
    call BI-Java stuff like BEx Web Application iView.
    After many testing implemented, we found SSO Logon ticket with user
    mapping (using SAP reference system). It seems working now.
    But our question is "Is it no problem when we use SSO logon ticket with
    user mapping?" Is there any restriction or issue?
    One more question is we can ONLY use user base mapping when reference
    system used. How can we assign BI-ABAP users to EP Group?

    Using an SAP Reference system is allright. But if the reason u r going for this is because of different usernames in EP and BI, why dont you go for user mapping.
    Anyways, on restriction of reference syetms is that you can have ONLY ONE reference system defined in portal. In you case you can only have the BI system defined.
    Hope this helps!!

  • A question about a method with generic bounded type parameter

    Hello everybody,
    Sorry, if I ask a question which seems basic, but
    I'm new to generic types. My problem is about a method
    with a bounded type parameter. Consider the following
    situation:
    abstract class A{     }
    class B extends A{     }
    abstract class C
         public abstract <T extends A>  T  someMethod();
    public class Test extends C
         public <T extends A>  T  someMethod()
              return new B();
    }What I want to do inside the method someMethod in the class Test, is to
    return an instance of the class B.
    Normally, I'm supposed to be able to do that, because an instance of
    B is also an instance of A (because B extends A).
    However I cannot compile this program, and here is the error message:
    Test.java:16: incompatible types
    found   : B
    required: T
                    return new B();
                           ^
    1 errorany idea?
    many thanks,

    Hello again,
    First of all, thank you very much for all the answers. After I posted the comment, I worked on the program
    and I understood that in fact, as spoon_ says the only returned value can be null.
    I'm agree that I asked you a very strange (and a bit stupid) question. Actually, during recent months,
    I have been working with cryptography API Core in Java. I understood that there are classes and
    interfaces for defining keys and key factories specification, such as KeySpec (interface) and
    KeyFactorySpi (abstract class). I wanted to have some experience with these classes in order to
    understand them better. So I created a class implementing the interface KeySpec, following by a
    corresponding Key subclass (with some XOR algorithm that I defined myself) and everything was
    compiled (JDK 1.6) and worked perfectly. Except that, when I wanted to implement a factory spi
    for my classes, I saw for the first time this strange method header:
    protected abstract <T extends KeySpec> T engineGetKeySpec
    (Key key, Class<T> keySpec) throws InvalidKeySpecExceptionThat's why yesterday, I gave you a similar example with the classes A, B, ...
    in order to not to open a complicated security discussion but just to explain the ambiguous
    part for me, that is, the use of T generic parameter.
    The abstract class KeyFactorySpi was defined by Sun Microsystem, in order to give to security
    providers, the possibility to implement cryptography services and algorithms according to a given
    RFC (or whatever technical document). The methods in this class are invoked inside the
    KeyFactory class (If you have installed the JDK sources provided by Sun, You can
    verify this, by looking the source code of the KeyFactory class.) So here the T parameter is a
    key specification, that is, a class that implements the interface KeySpec and this class is often
    defined by the provider and not Sun.
    stefan.schulz wrote:
    >
    If you define the method to return some bound T that extends A, you cannot
    return a B, because T would be declared externally at invocation time.
    The definition of T as is does not make sense at all.>
    He is absolutely right about that, but the problem is, as I said, here we are
    talking about the implementation and not the invocation. The implementation is done
    by the provider whereas the invocation is done by Sun in the class KeyFactory.
    So there are completely separated.
    Therefore I wonder, how a provider can finally impelment this method??
    Besides, dannyyates wrote
    >
    Find whoever wrote the signature and shoot them. Then rewrite their code.
    Actually, before you shoot them, ask them what they were trying to achieve that
    is different from my first suggestion!
    >
    As I said, I didn't choose this method header and I'm completely agree
    with your suggestion, the following method header will do the job very well
    protected abstract KeySpec engineGetKeySpec (Key key, KeySpec key_spec)
    throws InvalidKeySpecException and personally I don't see any interest in using a generic bounded parameter T
    in this method header definition.
    Once agin, thanks a lot for the answers.

  • Questions about PDF exporting with InDe CS5.5

    Hey all,
    A couple questions about exporting to PDF from the latest version of InDe.
    First, I have noticed that it seems to take a lot longer to get to a PDF. Any suggestions for how to speed up the process? It took 8 minutes or so to generate a low-res PDF (for print) of a 24pp document with a few placed images and vector graphics. Wow, that's a long time to wait, especially for a proof.
    Second, the background task... if I get it going on making that 8-minute PDF and then work some more on the document, what exactly is in the PDF? Usually I save before making a PDF or printing. So, is the last version saved what will be in the PDF?
    (As an aside, this ability to work on the doc while generating a PDF seems kind of weird. Generally one makes a PDF for proofing, or even for printing, when all the changes have been made and everything is "final". So, I see no benefit to being able to work on my document while it's making a PDF, as I'm probably finished making revisions for the time being. I have to say that I kind of like the progress bar you get when you make an interactive PDF, as you know you can't work on the document when that's on the screen... )
    Thanks as always.

    First, I have noticed that it seems to take a lot longer to get to a PDF. Any suggestions for how to speed up the process? It took 8 minutes or so to generate a low-res PDF (for print) of a 24pp document with a few placed images and vector graphics. Wow, that's a long time to wait, especially for a proof.
    Yes, this is abnormally long (and too long), something is wrong. What's the full version of InDesign you are running, as reported by holding down Cmd or Control and selecting About InDesign?
    Second, the background task... if I get it going on making that 8-minute PDF and then work some more on the document, what exactly is in the PDF? Usually I save before making a PDF or printing. So, is the last version saved what will be in the PDF?
    Saving is not related. InDesign makes a database snapshot of your document the moment you begin the PDF export, and makes the export relative to that snapshot, regardless of edits you continue to make during the export process, and regardless of saving. Of course saving first is a good idea, for several reasons, not the least of which it sounds like something's fairly seriously wrong with your document or your InDesign installation.
    We recommend you trash your preferences and export your document to IDML and see if either of those things changes this 8-minute behavior...err, assuming you're running 7.5.2.318.
    (As an aside, this ability to work on the doc while generating a PDF seems kind of weird. Generally one makes a PDF for proofing, or even for printing, when all the changes have been made and everything is "final". So, I see no benefit to being able to work on my document while it's making a PDF, as I'm probably finished making revisions for the time being. I have to say that I kind of like the progress bar you get when you make an interactive PDF, as you know you can't work on the document when that's on the screen... )
    Yeah, I think the primary benefit is if you are likely to work on 2 or more files in parallel, so you can finish A and export A and then switch to B. If you'd like a dialog box to pop up when export is done, check out my exportPop script from this post: ANN: automatic dialog after background export (exportPop.jsx.

  • Questions about supporting TLF with Halo components in Flex 4.1

    We recently decided to upgrade to the Flex 4.1 SDK after a year or so at 3.2.  We have been asked to not use the new SPARK components yet because our products would then have a mistmatch of Halo and Spark components in the UI.  We have built support for our Halo components to display html through the ".htmlText" property for the Text components.  For example, we can display strings such as "<p>Choose <b>one</b> option:</p>".  With the upgrade to Flex 4.1 a couple of questions about supporting bi-directional text have come up.  My understanding is that in order to support bi-directional text we need to use the Text Layout Framework.  Does anyone have a suggestion on how we can utilize the TLF with the Halo components in Flex 4.1?    Can we still use the ".htmlText" property somehow or is there a new property that understands the TextFormat markup?  We would love to still be able to use the limited html tags that are supported for the "htmlText" property.  Is there an option where that syntax is still understood?
    Thanks in advance!
    David

    The halo components use TextField, and the spark components use TLF. Both sets have support for some html markup to import and export text. To use bidi text, you have to use TLF; TextField won't work properly.
    It is possible to use TLF to build your own components, and this can work well particularly for applications with specialized needs. But if you need bidi support for advanced components like DataGrid and List, then you should use the spark components.
    Thanks!
    - robin

  • A few questions about using PS3 with 27" iMac display...

    Hey people, I had a few questions about how I could possibly get my ps3 connected to the iMac's 27" screen. First of all, could you guys list some adapters that would be able to convert the HDMI to Mini displayport? That would be great. The only one I know of is that Dr. Bott Digital Video link.
    Okay secondly, I was wondering if I do get the the ps3 connected with the iMac's display with an adapter to convert HDMI to mini DisplayPort, would it be in HD? Would I be able to play ps3 games or watch blu-ray movies in 1080p HD format?
    Thanks!

    Welcome to the Apple Discussions!
    This has been asked a number of times here since the intro of the 27" iMac. The answer is very expensive US$149 or more converters and sometimes even more expensive to maintain the resolutions that you seek.
    http://lowendmac.com/ed/bashur/09db/dvi-to-mini-displayport.html
    Dah•veed

  • Question about 360 movieclip with cursor action

    Hello Flash Forum
    We have a question about a 360 flash / movieclip which comes
    to a halt or jumps to whereever the cursor is moved horizontally
    while any vertical movements is ignored. We are having difficulties
    to implement this and would like to ask whether someone can point
    us into the right direction in Flash 8 - read somewhere that this
    is extremely easy in Flash 8 but we cannot find out how!?
    An example would be:
    http://www.kswiss.com/cgi-bin/kswiss/store/product_detail.html?mv_arg=x&pid=01190:177
    and then chosing 'Go 360'
    Thank you for any assistance and/or direction.
    Alex

    Alex, took a look at your sample - looks to me like
    start_drag and stop_drag on mouse_over. Hope this helps. ash

  • Question about Database Access

    Hello,
    I have one question regarding database access from Java.
    What are the other ways of connecting to database other than JDBC? This was one of the question I been asked by the interviewer. He says JDBC connection can slow down the perfomance when it comes large number of transactions?
    Any insight or help will be very useful.
    Thanks

    He may have been referring to available "persistance managers" like Hibernate or the mechanisms build into EJB containers. However, as far as I know, they all use JDBC, and any speed-up is due to caching of data as objects.

  • Question about "mod_security: Access denied with code 400"

    Dear All,
    After merged clone's configure the application tier server nodes. I can get in form window, but after merged clone's finishing tasks:1.Generate JAR files / generate message files / relink executables / copy files to destination. I can't open form window any more.
    The apache error_log will show below
    mod_security: Access denied with code 400. Pattern match "!^([-_@|#!=A-Za-z0-9/ :.$]){0,255}([-_@|#!=A-Za-z0-9/:.$]){0,255}$" at ARGS_NAMES. [hostname "hcp11et30.liteonit.com.tw"] [uri "/oprocmgr-service"] [unique_id TugHyQoG2lsAAFOwD84]
    Then referred Note 389558.1, and can login normally, But the same error messages still keeping reporting in error_log.
    Please advise?
    Thanks,
    Jackie

    Hi;
    Did you check below notes:
    Access Denied With Code 400 When Starting Forms or Calling MOD_PLSQL [ID 394587.1]
    Why do we see Error: mod_security: access denied with code 400 IN OCO pages? [ID 976473.1]
    Regard
    Helios

  • A question about partial backups.

    In the usual way I backup my iMac to an external hard drive using 3rd party software and that's fine. But for additional security I bought two additional solid state drives of about 60 GB so I could make extra copies of some important files that change frequently.
    My question is, what's the best way to backup these smaller SSDs? I can plug each into the main external drive and the iMac but not into each other -- can't daisy-chain them. Is there software made just for this?

    There is no software for daisy chaining two drives that cannot be daisy chained. You can use your backup utility or some other utility to backup the files you want individually to the SSD.

  • About to purchase but question about usb access to Sony DVD-RW camera

    I am on the verge of purchase of a macbook and it would be my first mac at that. Specifically, I am looking for information on using the usb connection between my camera and the macbook. I am coming from the Windows world, and the camera software is windows only. I record my stuff in VR mode, and when I plug in via usb the windows software allows me to pull off the VRO files. Then I have another windows program that is able to read the VRO files and I can move them around (I don't edit the contents of the VROs), put transitions and then create a dvd. My question when moving to the macbook, can I still record in VR mode and then when done recording, without finalizing the disk, hook the usb cable to the macbook and it will be able to read those files? I read in other posts something similar but not definitive that it could not do this. There might be other software (ie, something call readDVD) that might be able to but could not determine, for sure, that it could do this over the usb (since I can't pull the 8CM disk and put it in the non-tray DVD drive). Or is there a better suggestion, please be kind that I don't know what is possible on the MAC.
    For what is it worth, my scenario that I have put up with (because it gave me results that were adequate) on the windows side, had me record in VR mode and it gave me control over all the individual segments (hitting record and then stop is a segment) that I could manipulate individually with the windows software. I don't know enough about what is possible with the usb connection and the software on the MAC to know what to expect out of the box and if I have to buy additional software (to pull the movies off the video camera). If I recorded in Video mode, and then finalized and then hooked the usb cable to the macbook, would the resultant files be able to be read by iMovie? If so, would it be the individual segments or would it be one be movie (ie, all segments rolled up into a/many vob(s))? I want to be able to join many segments from many different disks onto one dvd. Maybe that is the crux of my question and may really be better suited for the iMovie forum rather than this one. If, so, please forgive my ignorance.

    Welcome to macbook forum,
    Could you post your camera model / type, so we can check that out for you in order to give you better answers.
    Or you can check this link for camcorder that supported on new iMovie 7.x.x.
    http://docs.info.apple.com/article.html?artnum=306171
    Good Luck.

  • Question About Using iPhoto With Sony Wireless Auto Import

    I just bought a Sony DSC-RX100M2 and I'm very excited about the prospect of sending my photos wirelessly to my Retina MacBook Pro OSX 10.9.1.
    I use iPhoto but I just know the basics.
    I just imported 2 test pictures.
    I can find them in Finder: My Home folder has a folder called Pictures.  Sony placed a folder there called 2-14-14 (i.e. today's date), and the two pictures were in that folder. 
    I opened iPhoto and imported those pictures into my photo library.  Great.
    Now the question.  Once these pictures have been imported into my photo library, can I delete the 2-14-14 folder (and its contents) created by the Sony import?  It seems that I can, and the pictures are still in my photo library.  But if that is the case, where are the pictures?
    Mind you, I don't really need to "know" where the files are.  I just need to be assured that after I import a photo into the photo library, I can delete the original folder where the import came in from my camera (which I think I've just proven to myself that I can?).
    I'm sorry, this is probably basic stuff for most iphoto users, but I just want to make sure that I do not accidentally trash any photos.
    Thanks

    Now the question.  Once these pictures have been imported into my photo library, can I delete the 2-14-14 folder (and its contents) created by the Sony import? 
    Yes
    It seems that I can, and the pictures are still in my photo library.  But if that is the case, where are the pictures?
    As you said - in your iPhoto library
    see the user tip on accessing your iPhoto files for details on accessing them
    LN

  • Question about using RE1000 with EA6500

    I have an EA6500 route but having problem getting wireless signal to one room in my house.  As a result, I am thinking about buying RE1000.
    If I buy this unit, will I need to connect to a different network when using wireless devices in the room near the extender.
    Or will both the extender and router operate as a single wireless network name?  If they both operate under a single wireless name, how will I know the extender is connecting and working.
    Please let me know.  Thanks.

    atomarchio wrote:
    I have an EA6500 route but having problem getting wireless signal to one room in my house.  As a result, I am thinking about buying RE1000.
    If I buy this unit, will I need to connect to a different network when using wireless devices in the room near the extender.
    Or will both the extender and router operate as a single wireless network name?  If they both operate under a single wireless name, how will I know the extender is connecting and working.
    Please let me know.  Thanks.
    Just to answer your question, RE1000 will extend your router's main wireless network - so they will operate with single / same wireless network name. You'll know that the extender is connected and working if you'll be able to see the RE1000 listed on your router's DHCP client's table.
    If everyone needs to believe in something, I believe I'll have another beer..

  • Question about wireless access

    I'm thinking about buying an Airport Extreme for my dorm so my two roommates and I don't have to bother with ethernet cables. Once the base station is set up, will I have to leave my laptop connected to it in order to access the internet, or will the base station function on its own (meaning, can I set up the base station and have it stand alone as a wireless station connected to our dorm ethernet port)? Thanks.

    Once you have configured the Airport base station then it will work fine and no computer needs to be left on (unlike when you share an internet connection).
    iFelix

  • Question about asp access

    Hi.
    I'm trying to get information from a MS Access database to a Java applet. I think the easiest way to do this is to use ASP. I got the asp page working to access the database and print its contents but I have no idea how the applet can access that information. I know nothing about asp and got the connection code from a tutorial. Can anyone tell me how I can access the information from a Java applet?
    Thanks in advance.
    ASP code follows:
    <%
    Set MyConn = Server.CreateObject("ADODB.Connection")
    MdbFilePath = Server.MapPath("db1.mdb")
    MyConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
    SQL_query = "SELECT * FROM Table1"
    Set RS = MyConn.Execute(SQL_query)
    WHILE NOT RS.EOF
    %>
    <LI><%=RS("Name")%>: $<%=RS("Balance")%>
    <%
    RS.MoveNext
    WEND
    %>

    Thanks, I've gotten the reading working. But I'm a
    little confused on how I would update. If I wrote an
    asp page (say...called update.asp) that updates the
    database, how would I call that from java? You
    wouldn't use an input stream would you?Same way. Don't confuse the input stream with "input to a database". It's just the response from the service, and also the way to actually get the service (URL) to be invoked. Of course, for updating the database, you're probably going to want to pass the service something, telling it what to update. Passing it something is done (or can be done, as one way) by putting the information on the URL, like:
    http://some/path/update.asp?key=abc&newValue...
    And if you have any links to tutorials on asp database code,
    that would be awesome. Thanks.I'd suggest using good-old google: http://www.google.com to search for those keywords.

Maybe you are looking for