InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
JISFileReader Class Reference
Inheritance diagram for JISFileReader:
CTxtImpFileReaderCPMUnknown< ITxtImpFileReader >ITxtImpFileReaderIPMUnknown

Public Types

enum  JIS_States {
  kInASCII, kInEscSeqByte1, kInEscSeqByte2D, kInEscSeqByte2P,
  kInJIS_Old, kInJIS_New, kInJIS_Roman
}
 

Public Member Functions

 JISFileReader (IPMUnknown *boss)
 
virtual UTF16TextChar GetNextTextChar (void)
 
- Public Member Functions inherited from CTxtImpFileReader
 CTxtImpFileReader (IPMUnknown *boss)
 
virtual ~CTxtImpFileReader (void)
 
virtual void SetStream (IPMStream *stream)
 
virtual int32 GetFileSizeInBytes (void)
 
- Public Member Functions inherited from CPMUnknown< ITxtImpFileReader >
IPMUnknownQueryInterface (PMIID interfaceID) const
 
void AddRef () const
 
void Release () const
 
void PreDirty (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
void PreDirtyNoMessage (ImplementationID prop=kInvalidImpl, bool16 allowModification=kTrue)
 
 CPMUnknown (const CPMUnknown &)=delete
 
CPMUnknownoperator= (const CPMUnknown &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from CPMUnknown< ITxtImpFileReader >
 CPMUnknown (IPMUnknown *boss)
 
- Protected Attributes inherited from CTxtImpFileReader
IPMStreamfStream
 
UTF16TextChar * fTCBuf
 
uchar * fCBuf
 
int32 fLen
 
int32 fCurrMarker
 
int32 fEndOfReadMarker
 

Detailed Description

JISFileReader Provides a full implementation for an JIS file reader, by supplying the GetNextTextChar method.

Member Enumeration Documentation

States for the JIS state machine.  In the TextImportFilter sample, 

we are only using this to keep track of the current state of the JISFileReader.

For this sample plug-in, we are using the ISO-2022-JP standard.

For more details on the ISO-2022-JP standard and related JIS encodings, refer to the following IETF RFCs:

  • RFC 1468: Japanese Character Encoding for Internet Messages, which covers ISO-2022-JP, which includes ASCII, JIS-Roman, JIS C 6226-1978 and JIS X 0208-1983. (http://www.ietf.org/rfc/rfc1468.txt)
  • RFC 1554: ISO-2022-JP2: Multilingual Extension of ISO-2022-JP, which extends ISO-2022-JP by adding GB2312-80 and KS X 1001:1992, and by includubg ISO-2022-JP1, as documented in RFC 2237. (http://www.ietf.org/rfc/rfc1554.txt)
  • RFC 2237: Japanese Character Encoding for Internet Messages, which covers ISO-2022-JP1, an extension to ISO-2022-JP which adds JIS X 0212-1990. (http://www.ietf.org/rfc/rfc2237.txt)

Constructor & Destructor Documentation

Binds the C implementation class onto its ImplementationID making the C code callable by the application * JISFileReader::JISFileReader (IPMUnknownboss)

Constructor

Member Function Documentation

UTF16TextChar JISFileReader::GetNextTextChar (void )
virtual

Gets the next UTF16TextChar.

Implements CTxtImpFileReader.