Top Fields Constructors Methods
org.apache.poi.hpsf

public Class CodePageString

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.poi.hpsf.IndirectPropertyName
Annotations
@Internal
Imports
org.apache.logging.log4j.LogManager, .Logger, org.apache.poi.util.*, java.io.IOException, .OutputStream, .UnsupportedEncodingException

Field Summary

Modifier and TypeField and Description
private byte[]
private static final int
private static final Logger
private static int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getJavaValue(int codepage)

public static int

Returns:

the max record length allowed for CodePageString
getMaxRecordLength
()

public int
public void
public void
setJavaValue(String string, int codepage)

public static void
setMaxRecordLength(int
the max record length allowed for CodePageString
length
)

public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_valueback to summary
private byte[] _value
DEFAULT_MAX_RECORD_LENGTHback to summary
private static final int DEFAULT_MAX_RECORD_LENGTH
LOGback to summary
private static final Logger LOG
MAX_RECORD_LENGTHback to summary
private static int MAX_RECORD_LENGTH

Constructor Detail

CodePageStringback to summary
public CodePageString()

Method Detail

getJavaValueback to summary
public String getJavaValue(int codepage) throws UnsupportedEncodingException
getMaxRecordLengthback to summary
public static int getMaxRecordLength()
Returns:int

the max record length allowed for CodePageString

getSizeback to summary
public int getSize()
readback to summary
public void read(LittleEndianByteArrayInputStream lei)
setJavaValueback to summary
public void setJavaValue(String string, int codepage) throws UnsupportedEncodingException
setMaxRecordLengthback to summary
public static void setMaxRecordLength(int length)
Parameters
length:int

the max record length allowed for CodePageString

writeback to summary
public int write(OutputStream out) throws IOException