List of usage examples for java.lang Integer toString
@HotSpotIntrinsicCandidate public static String toString(int i)
From source file:Main.java
/** * attach (append to child) RGB to the element, in the format <red>12</red> etc * @param rgb/*from ww w. j a va 2 s . c o m*/ * @param elem * @param doc */ public static void attachRGB(Color rgb, Element elem, Document doc) { int r = rgb.getRed(); int g = rgb.getGreen(); int b = rgb.getBlue(); //create element Element red = doc.createElement(TAG_NAME_RED); Element green = doc.createElement(TAG_NAME_GREEN); Element blue = doc.createElement(TAG_NAME_BLUE); //fill the content red.appendChild(doc.createTextNode(Integer.toString(r))); green.appendChild(doc.createTextNode(Integer.toString(g))); blue.appendChild(doc.createTextNode(Integer.toString(b))); //structure the content elem.appendChild(red); elem.appendChild(green); elem.appendChild(blue); }
From source file:Main.java
public static String getImageURL(int localId, String imageType) { return getImageURL(Integer.toString(localId), imageType); }
From source file:Main.java
/** * Convert to String an integer value that received as parameter. * * @param inte the inte/*from w w w . jav a 2s .co m*/ * @return String */ public static String toStringInteger(Integer inte) { return inte == null ? null : URLEncoder.encode(Integer.toString(inte)); }
From source file:Main.java
public static void writeIntAttr(Element element, String attributeName, int value) { element.setAttribute(attributeName, Integer.toString(value)); }
From source file:Main.java
/** * Creates an attribute with content in the form of an integer *///from ww w . j av a2 s. com public static void setAttribute(Element element, String name, int value) { setAttribute(element, name, Integer.toString(value)); }
From source file:Main.java
/** * Append attribute.//from ww w. j av a 2s .c o m * * @param baseNode * the base node * @param attributeName * the attribute name * @param attributeValue * the attribute value */ public static void appendAttribute(Element baseNode, String attributeName, int attributeValue) { appendAttribute(baseNode, attributeName, Integer.toString(attributeValue)); }
From source file:Artemis_Expanded_Skyboxes.System01.java
public static void system01() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {/* www .java2 s. co m*/ FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System02.java
public static void system02() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {//from w ww . j av a2 s . co m FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System03.java
public static void system03() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {/*from ww w .ja va 2s.com*/ FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }
From source file:Artemis_Expanded_Skyboxes.System04.java
public static void system04() { // Path copyfrom = FileSystems.getDefault().getPath(dirRoot + systemNo + "/" + dirName + "/"); //Path target = FileSystems.getDefault().getPath("D:/Artemis/art/sb12/"); //Path target_dir = FileSystems.getDefault().getPath("D:/Artemis/art/sb12"); for (int x = 12; x <= 29; x++) { dirNo = Integer.toString(x); File source = new File(sourceDir + dirName + dirNo + "/"); File dest = new File(targetDir + dirName + dirNo + "/"); try {/*from ww w . j a v a2 s. co m*/ FileUtils.copyDirectory(source, dest); } catch (IOException e) { e.printStackTrace(); } } }