Fix inconsistent indents
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1593297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
00e2e55338
commit
27e48c3b79
@ -194,35 +194,35 @@ public abstract class PropertiesChunk extends Chunk {
|
|||||||
|
|
||||||
// Skip over any padding
|
// Skip over any padding
|
||||||
if (length < 8) {
|
if (length < 8) {
|
||||||
byte[] padding = new byte[8-length];
|
byte[] padding = new byte[8-length];
|
||||||
IOUtils.readFully(value, padding);
|
IOUtils.readFully(value, padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Wrap and store
|
// Wrap and store
|
||||||
PropertyValue propVal = null;
|
PropertyValue propVal = null;
|
||||||
if (isPointer) {
|
if (isPointer) {
|
||||||
// We'll match up the chunk later
|
// We'll match up the chunk later
|
||||||
propVal = new ChunkBasedPropertyValue(prop, flags, data);
|
propVal = new ChunkBasedPropertyValue(prop, flags, data);
|
||||||
}
|
}
|
||||||
else if (type == Types.SHORT) {
|
else if (type == Types.SHORT) {
|
||||||
propVal = new ShortPropertyValue(prop, flags, data);
|
propVal = new ShortPropertyValue(prop, flags, data);
|
||||||
}
|
}
|
||||||
else if (type == Types.LONG) {
|
else if (type == Types.LONG) {
|
||||||
propVal = new LongPropertyValue(prop, flags, data);
|
propVal = new LongPropertyValue(prop, flags, data);
|
||||||
}
|
}
|
||||||
else if (type == Types.LONG_LONG) {
|
else if (type == Types.LONG_LONG) {
|
||||||
propVal = new LongLongPropertyValue(prop, flags, data);
|
propVal = new LongLongPropertyValue(prop, flags, data);
|
||||||
}
|
}
|
||||||
else if (type == Types.TIME) {
|
else if (type == Types.TIME) {
|
||||||
propVal = new TimePropertyValue(prop, flags, data);
|
propVal = new TimePropertyValue(prop, flags, data);
|
||||||
}
|
}
|
||||||
// TODO Add in the rest of the types
|
// TODO Add in the rest of the types
|
||||||
else {
|
else {
|
||||||
propVal = new PropertyValue(prop, flags, data);
|
propVal = new PropertyValue(prop, flags, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (properties.get(prop) == null) {
|
if (properties.get(prop) == null) {
|
||||||
properties.put(prop, new ArrayList<PropertyValue>());
|
properties.put(prop, new ArrayList<PropertyValue>());
|
||||||
}
|
}
|
||||||
properties.get(prop).add(propVal);
|
properties.get(prop).add(propVal);
|
||||||
} catch (BufferUnderrunException e) {
|
} catch (BufferUnderrunException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user