bmp/src/java/Bmp.java
public Object profileData() {
            if (this.profileData != null)
                return this.profileData;
            if (hasProfile()) {
                KaitaiStream io = _root._io();
                long _pos = io.pos();
                io.seek((14 + ofsProfile()));
                {
                    boolean on = _parent().bitmapV4Ext().colorSpaceType() == Bmp.ColorSpace.PROFILE_LINKED;
                    if (on == true) {
                        this.profileData = new String(KaitaiStream.bytesTerminate(io.readBytes(lenProfile()), (byte) 0, false), Charset.forName("windows-1252"));
                    }
                    else {
                        this.profileData = io.readBytes(lenProfile());
                    }
                }
                io.seek(_pos);
            }
            return this.profileData;
        }
/**
         * @see <a href="https://docs.microsoft.com/en-us/windows/win32/wcs/using-structures-in-wcs-1-0">"If the profile is embedded, profile data is the actual profile, and if it is linked, the profile data is the null-terminated file name of the profile. This cannot be a Unicode string. It must be composed exclusively of characters from the Windows character set (code page 1252)."</a>
         */
@see "If the profile is embedded, profile data is the actual profile, and if it is linked, the profile data is the null-terminated file name of the profile. This cannot be a Unicode string. It must be composed exclusively of characters from the Windows character set (code page 1252)."
@see " If the profile is embedded profile data is the actual profile and if it is linked the profile data is the null - terminated file name of the profile . This cannot be a Unicode string . It must be composed exclusively of characters from the Windows character set ( code page 1252 ) . "
public Object profileData() {
            if (this.profileData != null)
                return this.profileData;
            if (hasProfile()) {
                KaitaiStream io = _root._io();
                long _pos = io.pos();
                io.seek((14 + ofsProfile()));
                {
                    boolean on = _parent().bitmapV4Ext().colorSpaceType() == Bmp.ColorSpace.PROFILE_LINKED;
                    if (on == true) {
                        this.profileData = new String(KaitaiStream.bytesTerminate(io.readBytes(lenProfile()), (byte) 0, false), Charset.forName("windows-1252"));
                    }
                    else {
                        this.profileData = io.readBytes(lenProfile());
                    }
                }
                io.seek(_pos);
            }
            return this.profileData;
        }
public Object profileData ( ) { if ( this . profileData != null ) return this . profileData ; if ( hasProfile ( ) ) { KaitaiStream io = _root . _io ( ) ; long _pos = io . pos ( ) ; io . seek ( ( 14 + ofsProfile ( ) ) ) ; { boolean on = _parent ( ) . bitmapV4Ext ( ) . colorSpaceType ( ) == Bmp . ColorSpace . PROFILE_LINKED ; if ( on == true ) { this . profileData = new String ( KaitaiStream . bytesTerminate ( io . readBytes ( lenProfile ( ) ) , ( byte ) 0 , false ) , Charset . forName ( "windows-1252" ) ) ; } else { this . profileData = io . readBytes ( lenProfile ( ) ) ; } } io . seek ( _pos ) ; } return this . profileData ; }
@see <a href="https://docs.microsoft.com/en-us/windows/win32/wcs/using-structures-in-wcs-1-0">"If the profile is embedded, profile data is the actual profile, and if it is linked, the profile data is the null-terminated file name of the profile.
@see <a href = " https : // docs . microsoft . com / en - us / windows / win32 / wcs / using - structures - in - wcs - 1 - 0 " > " If the profile is embedded profile data is the actual profile and if it is linked the profile data is the null - terminated file name of the profile .