Java support for file of large dimension

Hi friends,
Do you know if exist a support for managing file of large dimension (about 2GB) using java? BerkeleyDB could be a good support?
thanks

As Kaj mentioned before, using an NTFS partition, you should be able to write files of extreme sizes (for instance, an NTFS partition that is 200GB in size may store a single 200GB file).
Of course, using FileChannel objects, you shouldn't actually try and write the full 2+ GB of data at once, because that will effectively require over 2GB RAM for the data of your application alone. Instead, append your datafile one segment at a time (the size of the segment, in bytes, is roughly the amount of RAM you need for your data). Perhaps you can directly write the bytes into FileChannel (ie: when your measurements take place), which does not require a byte buffer.
Neither FileChannel nor File impose size restrictions beyond what the underlying operating system and type of partition impose. For example: a FAT32 partition can't deal with files over 4GB, so no language (Java, C++, whatever) will make it possible to store 4+ GB files on a FAT32 partition.
If you rewrite a portion of my [url http://forum.java.sun.com/thread.jsp?forum=31&thread=562837&start=15&range=15&hilite=false#2770450]sample from the thread "storing in Java", you should be able to write a 4GB file on your NTFS partition. Change the size of the byte buffer to 64MB and the amount of cycles to 64 and you're there.
I'm not sure how long it will take to write 64 chunks of 64MB, but don't expect it to finish in a few seconds. My regular IDE drive takes 2.25 seconds for a 60MB file (yet, my Serial-ATA drive does it in 1078ms, so don't forget that hardware has a significant impact on I/O performance as well).

Similar Messages

  • Internationalization support for File Names

    I want to know does it make sense to provide multilingual support for File Names. Say, I have a file called PurchaseOrder.pdf and it will be sent to users as an email attachment. We can localize the file name(for example, in Chinese: 订单.pdf).
    But I want to know whether it is a standard to localize the file name. If not, should it be given in English, no matter which locale the user is using.
    Thanks in advance
    Edited by: Giritharan on Feb 1, 2010 1:53 AM

    ... hopefully you will not have to send another document to the same deliverer the very same day. Even if you add the minutes, a date tells you nothing about the contents. This is no problem as long as I receive nothing but purchase confirmations from you. But as a customer I will receive both sales confirmations and invoices, and then I think it's nice to see what the document is about.
    By the way, a person working in an international trading company is supposed nowadays to understand the English words "purchase, sale and invoice", isn't it? Maybe in 50 or 100 years from now Chinese will be the lingua franca. So be prepared for a change ;-)

  • Is there any Java support for RFC 3229?

    Hi,
    RFC 3229 appears to be the modern form of HTTP DRP. Is there any Java support for this at all? Are there any Java HTTP servers, HTTP client libraries that support it?
    Thanks,
    Curt
    RFC 3229 Delta encoding in HTTP
    http://www.ietf.org/rfc/rfc3229.txt
    The HTTP Distribution and Replication Protocol
    http://www.w3.org/TR/NOTE-drp-19970825

    Hi,
    We were selling LCCS to enterprise customer under a different licensing program, but have since stopped the sale of that.
    You should check out this thread - http://forums.adobe.com/message/4110049#4110049 for a discussion on this.
    Jeff

  • Can Java support .bmp files?

    This is probably a dumb question but I'm just wondering if Java supports .bmp files. I know how big they are and that they're not 100% reliable at being transparent and that they are slow when it comes to scaling. I also found them slow when they are drawn transparently not to mention that they are also not reliable at being translucent either. But I do have a program that can convert bitmaps to GIFs, JPEGs, PNGs, PCX... well, just about every image format that there is out there but I do start creating my images as .bmp's because they're easy to edit. So does Java support them?

    I assume it does... If you're not sure, try it. But why the heck would you want to do that? BMP's are no easier to edit than PNG's, and PNG's are better than BMP's in every way. Using BMP's would be like shooting yourself in the foot. Also, when loading an image into memory, they don't work any differently than any other format. The only thing format affects is how the image works BEFORE it's loaded in. Once it's loaded, it's just another image. Different formats won't change the speed of working with them in Java.

  • Support for file:///~/

    The Bash manual [1] contains references to the home directory of the kind <URL: file:///~/ > but Firefox refuses to display the resources referenced.
    [1] /usr/share/doc/packages/bash/bash.html

    Aperture, first will need to provide support for the filetype .BEF.
    Then a plugin can be created after there is support for filetype .BEF

  • Java support for runescape

    Anyone out there using runescape?   since i downloaded lion i cannot get into runescape,  Please let me know of any fixes or options i may have. 
    Thanks

    Apple recently completely "disabled" Java and its support in recent versions of OS X "Updates" because of the severe security problems that Java has been found to have.  You would have to Google Java Installation for Macs and find a download site to reinstall it if you REALLY want to have it back, but would be doing so at your own risk.

  • Support for file type .BEF

    Will there be support for *filetype .BEF ?*
    Provide for a plugin to support _HDR PhotoStudio_
    There is now a 64 bit Mac version of _HDR PhotoStudio_
    There is already a plugin for Lightroom

    Aperture, first will need to provide support for the filetype .BEF.
    Then a plugin can be created after there is support for filetype .BEF

  • Is there Java support for Indian languages other than Hindi?

    I'd like to use Tamil as a test language for some translated java files.
    I don't know whether it is supported or not.
    Alternatives are Bangla, Gujararati, Kannada, Marathi, Oriya, Punjabi, Telugu. Are any of these supported?
    I'd prefer not to use Hindi.
    The only website I can find listing the languages supported is from 2003. If you have a link to a more recent one, I would appreciate it.

    Locale is basically a glorified String[], so the idea that some locales are supported and others are not is sort of illusory.
    Quoting from the API...
    [quote begins]
    Locale(String language, String country, String variant)
    The language argument is a valid ISO Language Code. These codes are the lower-case, two-letter codes as defined by ISO-639... The country argument is a valid ISO Country Code. These codes are the upper-case, two-letter codes as defined by ISO-3166...
    Because a Locale object is just an identifier for a region, no validity check is performed when you construct a Locale...
    The Locale class provides a number of convenient constants that you can use to create Locale objects for commonly used locales...
    A Locale is the mechanism for identifying the kind of object (NumberFormat) that you would like to get. The locale is just a mechanism for identifying objects, not a container for the objects themselves.
    [quote ends]
    In other words, if you wanted to make up your own local for the language that they speak on Planet X (Xian), you could perfectly well have a Local object for that and properties or list files for it.
    Drake

  • PDK-Java support for oc4j?

    Hello. I am working with a customer who is responsible for building a web provider (the actual portal instance is being run by a separate division of the company). This customer is in the process of switching all of their generic servlet/jsps applications to the oc4j engine (now part of ias1022).
    They are highly interested in running the pdk-java on oc4j as well, so that they do not have to manage both JServ and oc4j applications. I have noticed that the June PDK seems highly tied to Jserv (there are explicit references to servlet2.0 and oracle.jsp.JspServlet in the code). This would make it not port to oc4j and my tests confirm this.
    Is there an announced roadmap for supporting the pdk-java on oc4j?
    null

    The next major release of PDK-Java will be Servlet 2.2 and hence OC4J compatible. You are right that the current version won't work in a Servlet 2.2 container, as it relies on ServletContext.getServlet(), a method which has been deprecated and returns null on Servlet 2.2.

  • Java support for lumia 520

    I couldn't be able to open dropdown menu in various website's which is easy to open in a windows7/8 laptop.
    This has restricted my usage with lumia 520.
    Is their is any solution for it?

    rohoit2013,
    Welcome to Nokia Discussions!
    The reason is that Windows Phone devices, including the Lumia 520, does not support native Java.
    Hope this clears

  • Support for file tag in XSLT to create dynamic pages  - Gallery type 'Flash'

    Based on my understanding, when you export, LR Web engine looks for transformer.xslt by default if the gallery type is HTML. It allows to use <file name="outputfilename.html"> tag in this transformer.xslt to create new files.<br /><br />But to my knowledge I don't see the above defaults working if the gallerytype is Flash. Why? I don't understand why LR is restricting the Flash based galleries from creating dynamic output files via XSLT.<br /><br />I tried setting xmlTransformer file name to transformer.xslt in galleryInfo.lrweb and leaving xmlPath to blank but this doesn't seem to work. If I give some dummy XML name, it creates the xml in that name, but ignores creating new files I mentioned in the <file> tag in xslt.<br /><br />Can someone please explain if there are any alternates or if possibly fixed in the next release ?

    Are you the one who commented out the code you're looking for ?//String desc = StringFactory.getString(attributes.getValue("desc"));You just have to modify you AttributeObject class to hold a new field : String description. And then, it's up to you to create a new constructor or a new setter method.
    Btw, this is not a Swing related question.

  • WiFi Support for a meduim/large event

    Hello All,
       I have a design question that maybe was already answered but I was unable to find sorry :-( ... It is a kind of dilemma on how to design the wireless network: I'm planning a wifi network to support a medium sized event, kind of an hotel conference setup with a big room for a plenary conference and a number of smaller rooms for people to break out, meet and discuss. Wifi should be enable allover the spaces. Let's assume we'll have something like 300/400 users, I'm pondering on what would be the best way to design the wifi network. A big /23 VLAN with all the users will be easy but I'm concerned about the amount of broadcasts the AP's will start to transmit all over so I was wondering if a segmentation would help like a number of /25 subnets with a few APs in each, to the extreme and having maybe a couple of AP in the plenary room in the same bigger subnet and than a subnet per break-out room. What concerns me in the second case is the roaming performance ... when a user will eventually move from one room to the other he will have to release and renew the IP in the new subnet, with all the consequences ...
    any Idea ? is there any best practice solution to face such situations ?
    Thank you in advance , kind regards Fulvio.

    Hello Justin,
    thank you for your answer, indeed I understand there are more issues with a high density deployment than the mere network Layer 2 and Layer 3 aspects. Given my background I got no problems at least at understanding the physics behind the interaction of a wireless device with the environment (walls, metallic structures etc.), among wireless devices (i.e. non overlapping channels, channel bw etc) and so forth. What I could not find easily were guidelines or best practices on the underlying network. I understand that depending on the type of application, especially VoWiFi, roaming and handover time is a crucial factor for a proper operation of the system. The problem is that I have a basic semi-working WiFi network in my building that I'm trying to optimize, sure hiring a contractor would be the ideal situation but you know how it goes a) there's not always money for a contractor b) if there would I would like to have enough knowledge to understand the design the contractor is proposing and, as most of the time happens the IT engineer is the guy that will have to do it :-) , in the end the pay engineers to engineer solutions :-)
    cheers Fulvio.

  • Support for file extensions with more than three characters when saving - I want my FLAC!

    Why does the Wave Editor still drop characters from filenames with more than three character extensions when you save a file? But since -opening- a FLAC file with an extension of ".flac" doesn't get chopped to ".fla", why does Audition still chop off the extra character when -saving-?
    It gets old quickly when you have to save, close and reopen files in order to get Audition's Multitrack editor to play nice and be able to find files when you reopen the Session.
    Given that the FLAC filter is open source, I may just have to modify the code and recompile it to force a save to ".fla"... But of course, ".fla" is a Flash file extension, which I also use, so that is a crude hack for me.

    Hi bro...
    use in BYTE mode in place of in TEXT mode. and at the end of each line give some special charactor so as to distinguish between lines.This is effected  by unicode check too
    regards
    Edited by: Mohit Kumar on Feb 9, 2009 9:44 AM

  • TREX support for File Formats?

    Hi All,
    Can TREX search inside a .TIFF File?
    If yes, is there any apecial configuration that we need to do?
    If no, any workaround possible?
    Cheers!

    Hi Anjan,
    I guess you mean a TIF-file.
    Picture file formats are not supported.
    Please find the supported file formats of TREX and further recommendations under this notes:
    Note 663630 TREX 6.1: Supported File Formats
    Note 761489 TREX 6.1: Requirements and Recommendations
    Regards Matthias

  • What are the java supported image file formats?

    tell me the image types supported by java?

    Cross post - http://forum.java.sun.com/thread.jspa?threadID=644574&messageID=3797440#3797440

Maybe you are looking for

  • [SOLVED] Cannot boot with linux-3.5.3

    Edit: Solved, as explained here. Hello, after upgrading to linux-3.5.3-1 my boot stopped at :: running early hook [udev] I tried upgrading to grub-bios-2.00, removing any customization I had in modprobe.conf and /etc/modules-load.d as well as removin

  • Power Map Won't Remain Installed

    Trying to install Power Map on my Lenovo Carbon X1 Windows 8.1(for 64 bit Excel). Each time I start Excel I'm required to go to COM ADD-INS to get Power Map to show up in the ribbon. Then when it is in the ribbon, I get an error. I've un and reinstal

  • How the Connector works inside ?

    Hello, now I got a sample with a BAPIRET2 table and it is working, but I have a general question to integer types. I saw that the field "ROW" is an ..._INT (INT4) and has a 4 byte length exactly how the byte store in memory. The ABAP dictionary says

  • Just upgraded to Photoshop CC, vram help needed.

    and get error regarding vram needing to be 512. I have 2 NVIDIA cards - one with 256 the other with 512-any help to resolve this?

  • Error 56 in TCP Read

    Hi, I have TCP Read in a loop  expecting data from some Micropchip boards connected to it. The problem I have is the boards do not send data all the time, hence I cannot wire in a specific constant to the number of bytes to read in, in the TCP read b