Find Jobs
Hire Freelancers

A Java Preferences for larger amounts of data

$10-30 USD

Terminado
Publicado hace más de 10 años

$10-30 USD

Pagado a la entrega
After two days of hacking around with the Java Preferences, I have come to the conclusion that Preferences were never meant to store large amounts of data. It seems to me that this is an important sub-problem. One of the people who has addressed the problem is David Croft. His code, which uses properties, is still unable to serialize large amounts of data, for reasons I cannot fathom. [login to view URL] shows his file example. The simplest example I can use to break his code appears below. We are interested in a java program that enables the storing of larger amounts of data in file preferences (perhaps 0.5Mb or so). Thanks! - D public static void main(String[] args) throws BackingStoreException { Preferences p = getPreferences([login to view URL]); for (String s : [login to view URL]()) { [login to view URL]("p[" + s + "]=" + [login to view URL](s, null)); } StringBuffer sb = new StringBuffer(); for (int i=0; i < 1<<11; i++){ [login to view URL](" "+i); } [login to view URL]("hi", true); [login to view URL]("Number", [login to view URL]([login to view URL]())); [login to view URL]("large string",[login to view URL]()); } public static Preferences getPreferences(Object c) { [login to view URL]("[login to view URL]", [login to view URL]()); File preferenceDir = [login to view URL](); [login to view URL]("preferenceDir:"+preferenceDir); File preferenceFile = new File(preferenceDir,"[login to view URL]"); [login to view URL](SYSTEM_PROPERTY_FILE, [login to view URL]()); [login to view URL]("storing preferences in:"+preferenceFile); return [login to view URL]([login to view URL]()); }
ID del proyecto: 5268561

Información sobre el proyecto

7 propuestas
Proyecto remoto
Activo hace 10 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
Hi, I am able to generate the preferences file with the large string. It's size comes around 9.04 KB and file on disk comes around 12 KB. I am keen to work on this project. Please let me know, any thing missed. I am not able to send the generated preferences file. Regards Rupa
$30 USD en 1 día
5,0 (17 comentarios)
4,6
4,6
7 freelancers están ofertando un promedio de $49 USD por este trabajo
Avatar del usuario
Hi ! I am a JAva /JEE Developer with 7 years experience. I took a look at your problem and it seems that the only way to do it is to create your own AbstractPreferences and make it override the one provided in JDK. Because AbstractPreferences contains a final constant named MAX_VALUE_LENGTH and set to 8*1024. and since it's final it cannot be changed. So as I told you the only way is to create your own class with the same methods and changing just the value of this constant. The second hack is to make jdk use you class instead of the one by default in the jdk.
$35 USD en 3 días
5,0 (2 comentarios)
2,8
2,8
Avatar del usuario
Dear Sir, We claim to get it done perfectly for you EXACTLY in the way you want it - Kindly give we a chance and we will prove myself - Ready to prove our words, let's get it done right away and I mean RIGHT AWAY !! Looking forward to hear from you soon - GOD Bless You.
$74 USD en 1 día
5,0 (2 comentarios)
2,7
2,7
Avatar del usuario
I am experienced java developer. I would be able to implement this. I used java-pref at work place to hold data. This will be pretty interesting to work on.
$55 USD en 7 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hello This sounds like an interesting problem. I would like to work on it; I'm assuming that I would not use a single file as Mr. Croft did. Here is some background on me. I've been an Object Oriented software developer and a development lead for over sixteen years. For the past thirteen years, I've focused on the Java/JEE platform using technologies and frameworks such as HTML, JSP, Servlets, JavaScript, Spring JDBC, CXF, and Spring MVC. In my day job, I build JEE web applications and web services (SOAP or REST). Those assets run in a variety of application servers/web servers such as WebSphere and Tomcat and connect to relational databases such as PostGreSQL and DB2. Additionally, I have subject matter expertise on tools (Maven, Jenkins, Checkstyle, Selenium Web Driver, etc.) and practices (TDD, BDD, etc.) which facilitate writing great code quickly. I have a B.S. degree in mathematics and I've completed half of the requirements for an M.S. in mathematics. I hated to bid so high, but even at $75.00, my hourly wage will be very low. Thank you for considering my bid. Patrick
$83 USD en 5 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
hi buddy, i have 2 years of experience in teaching and development of java.i have created projects like paint app, hotel management system, sales monitoring system, etc. i am ready to fulfill your requirement. so, for any details feel free to contact me on chat. Thanks & Regards!
$35 USD en 3 días
0,0 (0 comentarios)
0,0
0,0
Avatar del usuario
Hi, I am Saravanan. I have 6+ years of exp on Webdevelopment using Java, Struts, Spring, Hibernate, JPA, SOAP/Rest webservices, JSP, JSF, SQL/PLSQL. Eclipse, Tomcat, Weblogic, Jboss, Java script,HTML,XML,Jquery, AngularJS, Bootstarp, MySQL, Oracle, SQL Server, Selenium, Firbug, JXL Juit. I am willing to work on this project as I have similar exp. Please contact me further discussion. My skype id: mailmebysaro
$30 USD en 1 día
0,0 (0 comentarios)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
Milford, United States
4,9
38
Forma de pago verificada
Miembro desde may 25, 2012

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.