All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nmote.iim4j.serialize.DefaultSerializationContext Maven / Gradle / Ivy

Go to download

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;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy