com.nmote.iim4j.serialize.DefaultSerializationContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nmote-iim4j Show documentation
Show all versions of nmote-iim4j Show documentation
IIM4J allows Java programmers to read, write and process IPTC IIM version 4 files.
The newest version!
/**
* Copyright (c) Nmote Ltd. 2004. All rights reserved.
*/
package com.nmote.iim4j.serialize;
/**
* DefaultSerializationContext
*/
public class DefaultSerializationContext implements SerializationContext {
public DefaultSerializationContext() {
this(null);
}
public DefaultSerializationContext(String characterSet) {
setCharacterSet(characterSet);
}
public String getCharacterSet() {
return characterSet;
}
public void setCharacterSet(String cs) {
if (cs != null) {
characterSetAssigned = true;
characterSet = cs;
} else {
characterSetAssigned = false;
characterSet = "ISO-8859-1";
}
}
public boolean isCharacterSetAssigned() {
return this.characterSetAssigned;
}
private String characterSet;
private boolean characterSetAssigned;
}