Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7513877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:19:14+00:00 2026-05-30T00:19:14+00:00

I have some classes that exist to act is INI files and they work.

  • 0

I have some classes that exist to act is “INI” files and they work. I just wrote a new class that does serialize but the XML file has no data fields – it’s just a shell. What did I do wrong? I’m using Eclipse and Ubuntu 11.10.
The class:

public final class ProsilicaCamInit extends SerialXMLIO {
public boolean isMaster;
public boolean isSlave;
public int filter;
public int exposureTime;

public ProsilicaCamInit() {
}
public void setDefaultValues() {
    isMaster = false;
    isSlave = false;
    filter = 0;
    exposureTime = 5000;
}


public boolean getIsMaster() {
    return isMaster;
}

public void setIsMaster(boolean isMaster) {
    this.isMaster = isMaster;
}

public boolean getIsSlave() {
    return isSlave;
}

public void setIsSlave(boolean isSlave) {
    this.isSlave = isSlave;
}

public int getFilter() {
    return filter;
}

public void setFilter(int filter) {
    this.filter = filter;
}

public int getExposureTime() {
    return exposureTime;
}

public void setExposureTime(int exposureTime) {
    this.exposureTime = exposureTime;
}

}

I’s used here

ProsilicaCamInit pci = new ProsilicaCamInit();
pci.setDefaultValues();
pci.serialize(pathName);

I have checked to see that the default values are set and here’s the XML file which has only one of the fields.

<?xml version="1.0" encoding="UTF-8"?>
<java version="1.6.0_23" class="java.beans.XMLDecoder">
 <object class="fireScience.airborne.io.ProsilicaCamInit">
  <void property="exposureTime">
   <int>5000</int>
  </void>
 </object>
</java>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:19:16+00:00Added an answer on May 30, 2026 at 12:19 am

    I think the other values don’t need to be stored, because false is the default value for boolean and zero is the default for int.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking at some Java classes that have the following form: public abstract class
I have some classes that will do something based on some conditions . The
I have some classes that represent immutable objects (Quantity, Price, Probability). Is there some
I have some classes that, for one reason or another, cannot be or need
In one of my projects, I have some classes that represent entities that cannot
I have authored some custom classes that I would like to create using XAML:
I have some classes in my app that don't require an ID to be
I have a 100 classes that have some similar elements and some unique. I've
I have an interface, and some classes that inherit from it. public interface IFoo
I have some methods that are used by several classes. My idea was to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.