1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package convwatch;
25 //
26 // class OSHelper
27 // {
28 //     public static boolean isWindows()
29 //         {
30 //             String sOSName = System.getProperty("os.name");
31 //             if (sOSName.toLowerCase().startsWith("windows"))
32 //             {
33 //                 return true;
34 //             }
35 //             return false;
36 //         }
37 //     // not need
38 //     // public static boolean isUnix()
39 //     public static boolean isSolarisIntel()
40 //         {
41 //             if ( ( System.getProperty("os.name").toLowerCase().startsWith("solaris") ||
42 //                    System.getProperty("os.name").toLowerCase().startsWith("sunos") ) &&
43 //                  System.getProperty("os.arch").equals("x86"))
44 //             {
45 //                 return true;
46 //             }
47 //             return false;
48 //         }
49 //     public static boolean isSolarisSparc()
50 //         {
51 //             if ( ( System.getProperty("os.name").toLowerCase().startsWith("solaris") ||
52 //                    System.getProperty("os.name").toLowerCase().startsWith("sunos") ) &&
53 //                  System.getProperty("os.arch").equals("sparc"))
54 //             {
55 //                 return true;
56 //             }
57 //             return false;
58 //         }
59 //     public static boolean isLinuxIntel()
60 //         {
61 //             if (System.getProperty("os.name").toLowerCase().startsWith("linux") &&
62 //                 System.getProperty("os.arch").equals("i386"))
63 //             {
64 //                 return true;
65 //             }
66 //             return false;
67 //         }
68 //
69 //     public static boolean isUnix()
70 //         {
71 //             if (isLinuxIntel() ||
72 //                 isSolarisIntel() ||
73 //                 isSolarisSparc())
74 //             {
75 //                 return true;
76 //             }
77 //             return false;
78 //         }
79 //
80 // }
81