Package java.lang

Examples of java.lang.String$ConsolePrintStream


   * get the styles which are related to parameter style
   * @param style
   * @return all Styles of the parameterList
   */
  private List<XWPFStyle> getUsedStyleList(XWPFStyle style, List<XWPFStyle> usedStyleList){
    String basisStyleID  = style.getBasisStyleID();
    XWPFStyle basisStyle = getStyle(basisStyleID);
    if((basisStyle!=null)&&(!usedStyleList.contains(basisStyle))){
      usedStyleList.add(basisStyle);
      getUsedStyleList(basisStyle, usedStyleList);
    }   
    String linkStyleID = style.getLinkStyleID();
    XWPFStyle linkStyle = getStyle(linkStyleID);
    if((linkStyle!=null)&&(!usedStyleList.contains(linkStyle))){
      usedStyleList.add(linkStyle);
      getUsedStyleList(linkStyle, usedStyleList);
    }
   
    String nextStyleID = style.getNextStyleID();
    XWPFStyle nextStyle = getStyle(nextStyleID);
    if((nextStyle!=null)&&(!usedStyleList.contains(nextStyle))){
      usedStyleList.add(linkStyle);
      getUsedStyleList(linkStyle, usedStyleList);
    }   
View Full Code Here


            double max = m.get(1, 0);
            if (max != 1)
                CA = CA.times(new Matrix(new double[][]{{1/max, 0, 0},{0, 1/max, 0},{0, 0, 1/max}}));

            float actualExposure = exposure;
            String thisCamera = metadata.getCameraMake(true);
            for (String camera : fakeISO100Cameras)
                if (thisCamera.equals(camera)) {
                    if (metadata.getISO() == 100) {
                        actualExposure -= 1;
                    }
                    break;
                }
View Full Code Here

      //
    }
  }
 
  public void start(BundleContext context) throws Exception{
    String propVal=new String("both");
    String propValue=context.getProperty("mosgi.jmxconsole.remotelogger.componentfilter");
    if (propValue!=null) {
      if (propValue.equals("treeonly") | propValue.equals("tableonly") | propValue.equals("both") | propValue.equals("none")) {
        propVal=propValue;
      }else {
        propVal="both";
      }
    }
View Full Code Here

      // no luck with properties, let's try fields
      try {
        return FieldSupport.instance().fieldValue(propertyOrFieldName, Object.class, input);
      } catch (IntrospectionError propertyIntrospectionError) {
        // no field nor property found with given name, it is considered as an error
        String message = format(
            "\nCan't find any field or property with name '%s'.\nError when introspecting fields was :\n- %s \nError when introspecting properties was :\n- %s",
            propertyOrFieldName, fieldIntrospectionError.getMessage(), propertyIntrospectionError.getMessage());
        throw new IntrospectionError(message);
      }
    }
View Full Code Here

    return o;
  }

  static String[] get_Person_roles(Connection con, int ID)
      throws SQLException {
    String q = "SELECT roles FROM Person_roles WHERE Person_ID=" + ID;
    Statement stat = con.createStatement();
    ResultSet rs = stat.executeQuery(q);
    List<String> elements = new ArrayList<String>();
    while (rs.next()) {
      elements.add(rs.getString("roles"));
View Full Code Here

    return (String[]) elements.toArray(new String[0]);
  }

  static Date[] get_Person_vacation(Connection con, int ID)
      throws SQLException {
    String q = "SELECT vacation FROM Person_vacation WHERE Person_ID=" + ID;
    Statement stat = con.createStatement();
    ResultSet rs = stat.executeQuery(q);
    List<Date> elements = new ArrayList<Date>();
    while (rs.next()) {
      elements.add(rs.getDate("vacation"));
View Full Code Here

//      JOptionPane.showMessageDialog(null,"EXIT");
//    else
//      JOptionPane.showMessageDialog(null,"AAAA");
    //fillGameField(3,3);
    //String command = ae.getActionCommand().toString();
    String command = ae.getActionCommand().toString();
    if(command == "Find LAN"){

    }   else if (command == "Find Air"){

    }   else if(command == "Host LAN"){
View Full Code Here

public class UrlGrabbers {

    public static List<URL> parseWhitespaceCommaFile(String filename) throws FileNotFoundException, MalformedURLException, IOException {
        List<URL> list = new ArrayList<URL>();
        LineNumberReader lr = new LineNumberReader(new BufferedReader(new FileReader(new File(filename))));
        String line = lr.readLine();
        while (line != null) {
            List<String> s = Arrays.asList(line.split("[\\s,]+"));
            for (String i : s) {
                try {
                    list.add(new URL(i));
                } catch(MalformedURLException ex) {
                   
View Full Code Here

    private <T> void unmarshalAndMarshal(Class<T> type, java.lang.String xmlFileName, java.lang.String expectedFile) throws Exception {
        InputStream in = getInputStream(xmlFileName);
        assertNotNull(in);
        Object object = JaxbOpenejbJar2.unmarshal(type, in);

        String actual = JaxbOpenejbJar2.marshal(type, object);

        String expected;
        if (xmlFileName.equals(expectedFile)) {
            expected = readContent(getInputStream(xmlFileName));
        } else {
            expected = readContent(getInputStream(expectedFile));
        }
View Full Code Here

   * so if information from the InstructionInfo is to be retained, it must be copied.
   */

  public void enter(InstructionInfo info, XPathContext context) {
    int lineNumber = info.getLineNumber();
    String systemId = info.getSystemId();
    int constructType = info.getConstructType();
    if (utilsStylesheet == null &&
        systemId.indexOf("generate-tests-utils.xsl") != -1) {
      utilsStylesheet = systemId;
      out.println("<u u=\"" + systemId + "\" />");
    } else if (xspecStylesheet == null &&
               systemId.indexOf("/xspec/") != -1) {
      xspecStylesheet = systemId;
      out.println("<x u=\"" + systemId + "\" />");
    }
    if (systemId != xspecStylesheet && systemId != utilsStylesheet) {
      Integer module;
      if (modules.containsKey(systemId)) {
        module = (Integer)modules.get(systemId);
      } else {
        module = new Integer(moduleCount);
        moduleCount += 1;
        modules.put(systemId, module);
        out.println("<m id=\"" + module + "\" u=\"" + systemId + "\" />");
      }
      if (!constructs.contains(constructType)) {
        String construct;
        if (constructType < 1024) {
          construct = StandardNames.getClarkName(constructType);
        } else {
          switch (constructType) {
            case Location.LITERAL_RESULT_ELEMENT:
View Full Code Here

TOP

Related Classes of java.lang.String$ConsolePrintStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.