public class ProgressCounter
extends java.util.Observable
Modifier and Type | Class and Description |
---|---|
private class |
ProgressCounter.ProgressCount
Internal implementation of a ProgressCapsule
This Class is trivial, It's only a counter and two constants (the maximum and the minimum)
|
Modifier and Type | Field and Description |
---|---|
private ProgressCounter.ProgressCount |
m_capsule |
private static int |
MAXIMUM_PROTOCOLMESSAGE_SIZE
This is the maximum net size of a protocol message in bytes.
|
private static int |
MINIMUM_PACKET
The minimum value (0 actually...)
|
Constructor and Description |
---|
ProgressCounter()
The XML connection offer can't be bigger than the Maximum protocol size
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the capsule when the connection is etablished
|
void |
incrValue()
Increment the counter and update the status of the observer
|
void |
incrValue(int a_incrValue)
Increment the counter and update the status of the observer
|
void |
setMax(int a_maximum)
Set the length, when we know the real size of the XML file
|
private ProgressCounter.ProgressCount m_capsule
private static final int MAXIMUM_PROTOCOLMESSAGE_SIZE
private static final int MINIMUM_PACKET
public ProgressCounter()
public void setMax(int a_maximum)
a_maximum
- public void incrValue()
public void incrValue(int a_incrValue)
a_incrValue
- How many bits that we incrementpublic void close()
Copyright © 2023. All rights reserved.