Java 类javax.print.attribute.EnumSyntax 实例源码

项目:OpenJSharp    文件:Win32MediaTray.java   
protected EnumSyntax[] getEnumValueTable() {
  ArrayList completeList = new ArrayList();
  for (int i=0; i < myEnumValueTable.length; i++) {
    completeList.add(myEnumValueTable[i]);
  }
  completeList.addAll(winEnumTable);
  MediaTray[] enumTable = new MediaTray[completeList.size()];
  return (MediaTray[])completeList.toArray(enumTable);
}
项目:jdk8u-jdk    文件:Win32MediaTray.java   
protected EnumSyntax[] getEnumValueTable() {
  ArrayList completeList = new ArrayList();
  for (int i=0; i < myEnumValueTable.length; i++) {
    completeList.add(myEnumValueTable[i]);
  }
  completeList.addAll(winEnumTable);
  MediaTray[] enumTable = new MediaTray[completeList.size()];
  return (MediaTray[])completeList.toArray(enumTable);
}
项目:openjdk-jdk10    文件:Win32MediaTray.java   
protected EnumSyntax[] getEnumValueTable() {
  ArrayList<MediaTray> completeList = new ArrayList<>();
  for (int i=0; i < myEnumValueTable.length; i++) {
    completeList.add(myEnumValueTable[i]);
  }
  completeList.addAll(winEnumTable);
  MediaTray[] enumTable = new MediaTray[completeList.size()];
  return completeList.toArray(enumTable);
}
项目:lookaside_java-1.8.0-openjdk    文件:Win32MediaTray.java   
protected EnumSyntax[] getEnumValueTable() {
  ArrayList completeList = new ArrayList();
  for (int i=0; i < myEnumValueTable.length; i++) {
    completeList.add(myEnumValueTable[i]);
  }
  completeList.addAll(winEnumTable);
  MediaTray[] enumTable = new MediaTray[completeList.size()];
  return (MediaTray[])completeList.toArray(enumTable);
}
项目:openjdk9    文件:Win32MediaTray.java   
protected EnumSyntax[] getEnumValueTable() {
  ArrayList<MediaTray> completeList = new ArrayList<>();
  for (int i=0; i < myEnumValueTable.length; i++) {
    completeList.add(myEnumValueTable[i]);
  }
  completeList.addAll(winEnumTable);
  MediaTray[] enumTable = new MediaTray[completeList.size()];
  return completeList.toArray(enumTable);
}
项目:jdk8u_jdk    文件:Win32MediaTray.java   
protected EnumSyntax[] getEnumValueTable() {
  ArrayList completeList = new ArrayList();
  for (int i=0; i < myEnumValueTable.length; i++) {
    completeList.add(myEnumValueTable[i]);
  }
  completeList.addAll(winEnumTable);
  MediaTray[] enumTable = new MediaTray[completeList.size()];
  return (MediaTray[])completeList.toArray(enumTable);
}
项目:javify    文件:IppRequest.java   
/**
 * Writes an attribute in EnumSyntax into the stream.
 * @param attribute the attribute
 * @throws IOException if thrown by the stream
 */
private void write(EnumSyntax attribute) throws IOException
{
  // in JPS API enum syntax is used for enums, keyword and boolean types
  String name = ((Attribute) attribute).getName();

  // the enum value types
  if (attribute instanceof Finishings
      || attribute instanceof OrientationRequested
      || attribute instanceof PrintQuality)
    {
      out.writeByte(IppValueTag.ENUM);
      out.writeShort(name.length());
      out.write(name.getBytes());
      out.writeShort(4); // length, enum is 4 bytes
      out.writeInt(attribute.getValue());
    }
  // the boolean value type
  else if (attribute instanceof Fidelity)
    {
      out.writeByte(IppValueTag.BOOLEAN);
      out.writeShort(name.length());
      out.write(name.getBytes());
      out.writeShort(1); // length, boolean is 1 bytes
      out.writeByte(attribute.getValue() == 0 ? 0x00 : 0x01);
    }
  // the keyword value types
  else
    {
      String keyword = attribute.toString();
      out.writeByte(IppValueTag.KEYWORD);
      out.writeShort(name.length());
      out.write(name.getBytes());
      out.writeShort(keyword.length());
      out.write(keyword.getBytes());
    }
}
项目:OpenJSharp    文件:CustomMediaTray.java   
/**
 * Returns the enumeration value table for class CustomMediaTray.
 */
protected EnumSyntax[] getEnumValueTable() {
  MediaTray[] enumTable = new MediaTray[customEnumTable.size()];
  return (MediaTray[])customEnumTable.toArray(enumTable);
}
项目:OpenJSharp    文件:CustomMediaSizeName.java   
/**
 * Returns the enumeration value table for class CustomMediaSizeName.
 */
protected EnumSyntax[] getEnumValueTable() {
  MediaSizeName[] enumTable = new MediaSizeName[customEnumTable.size()];
  return (MediaSizeName[])customEnumTable.toArray(enumTable);
}
项目:OpenJSharp    文件:PresentationDirection.java   
/**
 * Returns the enumeration value table for class PresentationDirection.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:SheetCollate.java   
/**
 * Returns the enumeration value table for class SheetCollate.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:MediaSizeName.java   
/**
 * Returns the enumeration value table for class MediaSizeName.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:PDLOverrideSupported.java   
/**
 * Returns the enumeration value table for class PDLOverrideSupported.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:PrinterState.java   
/**
 * Returns the enumeration value table for class PrinterState.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:Fidelity.java   
/**
 * Returns the enumeration value table for class Fidelity.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:MultipleDocumentHandling.java   
/**
 * Returns the enumeration value table for class MultipleDocumentHandling.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:DialogTypeSelection.java   
/**
 * Returns the enumeration value table for class DialogTypeSelection.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:Severity.java   
/**
 * Returns the enumeration value table for class Severity.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:Compression.java   
/**
 * Returns the enumeration value table for class Compression.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:PrinterStateReason.java   
/**
 * Returns the enumeration value table for class PrinterStateReason.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:JobStateReason.java   
/**
 * Returns the enumeration value table for class JobStateReason.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:ColorSupported.java   
/**
 * Returns the enumeration value table for class ColorSupported.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:Sides.java   
/**
 * Returns the enumeration value table for class Sides.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:OrientationRequested.java   
/**
 * Returns the enumeration value table for class OrientationRequested.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:PrintQuality.java   
/**
 * Returns the enumeration value table for class PrintQuality.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:PrinterIsAcceptingJobs.java   
/**
 * Returns the enumeration value table for class PrinterIsAcceptingJobs.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:MediaTray.java   
/**
 * Returns the enumeration value table for class MediaTray.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:Finishings.java   
/**
 * Returns the enumeration value table for class Finishings.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:JobSheets.java   
/**
 * Returns the enumeration value table for class JobSheets.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:OpenJSharp    文件:JobState.java   
/**
 * Returns the enumeration value table for class JobState.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:Chromaticity.java   
/**
 * Returns the enumeration value table for class Chromaticity.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:OpenJSharp    文件:Win32PrintService.java   
protected EnumSyntax[] getEnumValueTable() {
  MediaSizeName[] enumTable = new MediaSizeName[winEnumTable.size()];
  return (MediaSizeName[])winEnumTable.toArray(enumTable);
}
项目:monarch    文件:EvictionAlgorithm.java   
@Override
final protected EnumSyntax[] getEnumValueTable() {
  return enumValueTable;
}
项目:monarch    文件:EvictionAction.java   
@Override
final protected EnumSyntax[] getEnumValueTable() {
  return enumValueTable;
}
项目:jdk8u-jdk    文件:CustomMediaTray.java   
/**
 * Returns the enumeration value table for class CustomMediaTray.
 */
protected EnumSyntax[] getEnumValueTable() {
  MediaTray[] enumTable = new MediaTray[customEnumTable.size()];
  return (MediaTray[])customEnumTable.toArray(enumTable);
}
项目:jdk8u-jdk    文件:CustomMediaSizeName.java   
/**
 * Returns the enumeration value table for class CustomMediaSizeName.
 */
protected EnumSyntax[] getEnumValueTable() {
  MediaSizeName[] enumTable = new MediaSizeName[customEnumTable.size()];
  return (MediaSizeName[])customEnumTable.toArray(enumTable);
}
项目:jdk8u-jdk    文件:PresentationDirection.java   
/**
 * Returns the enumeration value table for class PresentationDirection.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:jdk8u-jdk    文件:SheetCollate.java   
/**
 * Returns the enumeration value table for class SheetCollate.
 */
protected EnumSyntax[] getEnumValueTable() {
    return myEnumValueTable;
}
项目:jdk8u-jdk    文件:MediaSizeName.java   
/**
 * Returns the enumeration value table for class MediaSizeName.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}
项目:jdk8u-jdk    文件:PDLOverrideSupported.java   
/**
 * Returns the enumeration value table for class PDLOverrideSupported.
 */
protected EnumSyntax[] getEnumValueTable() {
    return (EnumSyntax[])myEnumValueTable.clone();
}