Skip navigation links


com.essbase.eas.essbase.defs.io
Class EssbaseTextFile

java.lang.Object
  extended by com.essbase.eas.utils.TextFile
      extended by com.essbase.eas.essbase.defs.io.EssbaseTextFile


public class EssbaseTextFile
extends TextFile

Field Summary
static java.lang.String LOCALE_HEADER_PREFIX
           

 

Fields inherited from class com.essbase.eas.utils.TextFile
encoding, file, locale, NATIVE, NATIVE_WITH_LOCALE, UNKNOWN, UTF8, UTF8Bytes, UTF8Charset

 

Constructor Summary
EssbaseTextFile(java.io.File _file)
           

 

Method Summary
static java.lang.String getCalcScriptLocaleHeader(java.lang.String content)
           
static java.lang.String getCalcScriptLocaleHeader(java.lang.String content, boolean validate)
           
 java.lang.String getCharset(java.lang.String locale)
          override this to support character set
static java.lang.String getCharsetForLocale(java.lang.String locale)
          getCharsetForLocale returns the associated Java Charset used to encode Essbase locale header
static java.lang.String getLocaleHeader(java.lang.String content)
          getLocaleHeader parses the first line of string context to look for Essbase locale header
 java.lang.String readCalcScriptWithHeader(java.lang.String locale)
           
 java.lang.String readFileWithHeader(java.lang.String locale)
           
static java.lang.String removeCalcScriptLocaleHeader(java.lang.String content)
          removeCalcScriptLocaleHeader parses the first line of string context to look for Essbase locale header removes the Essbase locale header if one exists
static java.lang.String removeLocaleHeader(java.lang.String content)
          removeLocaleHeader parses the first line of string context to look for Essbase locale header removes the Essbase locale header if one exists
 java.io.File tailToFile(long byteSize, java.lang.String localeString)
           

 

Methods inherited from class com.essbase.eas.utils.TextFile
getEncoding, getEncoding, getFile, getFileReader, getFileReader, getLocale, getString, hasUTF8Signature, hasUTF8Signature, isEncodingUTF8, isFileUTF8, readFile, readFileAsList, readWithEncoding, setEncoding, setFile, setLocale, writeFile, writeFile, writeFileWithHeader, writeFileWithHeader, writeUTF8Signature

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

LOCALE_HEADER_PREFIX

public static java.lang.String LOCALE_HEADER_PREFIX

Constructor Detail

EssbaseTextFile

public EssbaseTextFile(java.io.File _file)

Method Detail

readFileWithHeader

public java.lang.String readFileWithHeader(java.lang.String locale)

tailToFile

public java.io.File tailToFile(long byteSize,
                               java.lang.String localeString)

getLocaleHeader

public static java.lang.String getLocaleHeader(java.lang.String content)
getLocaleHeader parses the first line of string context to look for Essbase locale header
Parameters:
context - - context string
Returns:
Essbase locale header or null if locale header is not found in content

removeLocaleHeader

public static java.lang.String removeLocaleHeader(java.lang.String content)
removeLocaleHeader parses the first line of string context to look for Essbase locale header removes the Essbase locale header if one exists
Parameters:
context - - context string
Returns:
Essbase locale header or null if locale header is not found in content

getCalcScriptLocaleHeader

public static java.lang.String getCalcScriptLocaleHeader(java.lang.String content)

getCalcScriptLocaleHeader

public static java.lang.String getCalcScriptLocaleHeader(java.lang.String content,
                                                         boolean validate)

removeCalcScriptLocaleHeader

public static java.lang.String removeCalcScriptLocaleHeader(java.lang.String content)
removeCalcScriptLocaleHeader parses the first line of string context to look for Essbase locale header removes the Essbase locale header if one exists
Parameters:
context - - context string
Returns:
Essbase locale header or null if locale header is not found in content

readCalcScriptWithHeader

public java.lang.String readCalcScriptWithHeader(java.lang.String locale)

getCharset

public java.lang.String getCharset(java.lang.String locale)
Description copied from class: TextFile
override this to support character set
Overrides:
getCharset in class TextFile
Parameters:
locale - locale
Returns:
the character set

getCharsetForLocale

public static java.lang.String getCharsetForLocale(java.lang.String locale)
getCharsetForLocale returns the associated Java Charset used to encode Essbase locale header
Parameters:
locale - - Essbase locale header
Returns:
Java Charset used to encode Essbase locale header or null if the equivalent Charset is not found

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.