Lines Matching defs:format

93     public boolean isLocaleDependentTextFormat(long format) {
97 public boolean isTextFormat(long format) {
98 return super.isTextFormat(format)
99 || isMimeFormat(format, "text");
103 long format = lFormat.longValue();
104 if (isMimeFormat(format, "text")) {
105 String nat = getNativeForFormat(format);
120 protected boolean isURIListFormat(long format) {
121 String nat = getNativeForFormat(format);
131 // Not a MIME format.
136 public boolean isFileFormat(long format) {
137 return format == FILE_NAME_ATOM.getAtom() ||
138 format == DT_NET_FILE_ATOM.getAtom();
141 public boolean isImageFormat(long format) {
142 return format == PNG_ATOM.getAtom() ||
143 format == JFIF_ATOM.getAtom() ||
144 isMimeFormat(format, "image");
154 protected String getNativeForFormat(long format) {
155 return getTargetNameForAtom(format);
163 * Gets an format name for a given format (atom)
169 protected byte[] imageToPlatformBytes(Image image, long format)
172 if (format == PNG_ATOM.getAtom()) {
174 } else if (format == JFIF_ATOM.getAtom()) {
177 // Check if an image MIME format.
179 String nat = getNativeForFormat(format);
186 // Not an image MIME format.
192 String nativeFormat = getNativeForFormat(format);
213 * platform-specific image data in the given format into an Image.
217 long format)
220 if (format == PNG_ATOM.getAtom()) {
222 } else if (format == JFIF_ATOM.getAtom()) {
225 // Check if an image MIME format.
227 String nat = getNativeForFormat(format);
234 // Not an image MIME format.
240 String nativeFormat = getNativeForFormat(format);
258 long format,
264 isLocaleDependentTextFormat(format) &&
274 charset = getCharsetForTextFormat(format);
303 * Returns true if and only if the name of the specified format Atom
306 private boolean isMimeFormat(long format, String primaryType) {
307 String nat = getNativeForFormat(format);
319 // Not a MIME format.
329 * To meet this requirement we check if the passed native format constitutes
456 // Add a MIME format without specified charset.