001package com.pi4j.system.impl; 002 003/* 004 * #%L 005 * ********************************************************************** 006 * ORGANIZATION : Pi4J 007 * PROJECT : Pi4J :: Java Library (Core) 008 * FILENAME : SystemInfoProviderBase.java 009 * 010 * This file is part of the Pi4J project. More information about 011 * this project can be found here: http://www.pi4j.com/ 012 * ********************************************************************** 013 * %% 014 * Copyright (C) 2012 - 2016 Pi4J 015 * %% 016 * This program is free software: you can redistribute it and/or modify 017 * it under the terms of the GNU Lesser General Public License as 018 * published by the Free Software Foundation, either version 3 of the 019 * License, or (at your option) any later version. 020 * 021 * This program is distributed in the hope that it will be useful, 022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 024 * GNU General Lesser Public License for more details. 025 * 026 * You should have received a copy of the GNU General Lesser Public 027 * License along with this program. If not, see 028 * <http://www.gnu.org/licenses/lgpl-3.0.html>. 029 * #L% 030 */ 031 032import com.pi4j.system.SystemInfo; 033import com.pi4j.system.SystemInfoProvider; 034 035import java.io.IOException; 036import java.text.ParseException; 037import java.util.List; 038 039/** 040 * Abstract base implementation of the SystemInfoProvider interface. 041 * This base impl is a NO-OP impl, simply throwing a 'UnsupportedOperationException' 042 * for each method. 043 */ 044public abstract class SystemInfoProviderBase implements SystemInfoProvider { 045 046 @Override 047 public String getProcessor() throws IOException, InterruptedException, UnsupportedOperationException { 048 throw new UnsupportedOperationException(); 049 } 050 051 @Override 052 public String getModelName() throws IOException, InterruptedException, UnsupportedOperationException { 053 throw new UnsupportedOperationException(); 054 } 055 056 @Override 057 public String getBogoMIPS() throws IOException, InterruptedException, UnsupportedOperationException { 058 throw new UnsupportedOperationException(); 059 } 060 061 @Override 062 public String[] getCpuFeatures() throws IOException, InterruptedException, UnsupportedOperationException { 063 throw new UnsupportedOperationException(); 064 } 065 066 @Override 067 public String getCpuImplementer() throws IOException, InterruptedException, UnsupportedOperationException { 068 throw new UnsupportedOperationException(); 069 } 070 071 @Override 072 public String getCpuArchitecture() throws IOException, InterruptedException, UnsupportedOperationException { 073 throw new UnsupportedOperationException(); 074 } 075 076 @Override 077 public String getCpuVariant() throws IOException, InterruptedException, UnsupportedOperationException { 078 throw new UnsupportedOperationException(); 079 } 080 081 @Override 082 public String getCpuPart() throws IOException, InterruptedException, UnsupportedOperationException { 083 throw new UnsupportedOperationException(); 084 } 085 086 @Override 087 public String getCpuRevision() throws IOException, InterruptedException, UnsupportedOperationException { 088 throw new UnsupportedOperationException(); 089 } 090 091 @Override 092 public String getHardware() throws IOException, InterruptedException, UnsupportedOperationException { 093 throw new UnsupportedOperationException(); 094 } 095 096 @Override 097 public String getRevision() throws IOException, InterruptedException, UnsupportedOperationException { 098 throw new UnsupportedOperationException(); 099 } 100 101 @Override 102 public String getSerial() throws IOException, InterruptedException, UnsupportedOperationException { 103 throw new UnsupportedOperationException(); 104 } 105 106 @Override 107 public String getOsName() throws UnsupportedOperationException { 108 throw new UnsupportedOperationException(); 109 } 110 111 @Override 112 public String getOsVersion() throws UnsupportedOperationException { 113 throw new UnsupportedOperationException(); 114 } 115 116 @Override 117 public String getOsArch() throws UnsupportedOperationException { 118 throw new UnsupportedOperationException(); 119 } 120 121 @Override 122 public String getOsFirmwareBuild() throws IOException, InterruptedException, UnsupportedOperationException { 123 throw new UnsupportedOperationException(); 124 } 125 126 @Override 127 public String getOsFirmwareDate() throws IOException, InterruptedException, ParseException, UnsupportedOperationException { 128 throw new UnsupportedOperationException(); 129 } 130 131 @Override 132 public String getJavaVendor() throws UnsupportedOperationException { 133 throw new UnsupportedOperationException(); 134 } 135 136 @Override 137 public String getJavaVendorUrl() throws UnsupportedOperationException { 138 throw new UnsupportedOperationException(); 139 } 140 141 @Override 142 public String getJavaVersion() throws UnsupportedOperationException { 143 throw new UnsupportedOperationException(); 144 } 145 146 @Override 147 public String getJavaVirtualMachine() throws UnsupportedOperationException { 148 throw new UnsupportedOperationException(); 149 } 150 151 @Override 152 public String getJavaRuntime() throws UnsupportedOperationException { 153 throw new UnsupportedOperationException(); 154 } 155 156 @Override 157 public boolean isHardFloatAbi() throws UnsupportedOperationException { 158 throw new UnsupportedOperationException(); 159 } 160 161 @Override 162 public long getMemoryTotal() throws IOException, InterruptedException, UnsupportedOperationException { 163 throw new UnsupportedOperationException(); 164 } 165 166 @Override 167 public long getMemoryUsed() throws IOException, InterruptedException, UnsupportedOperationException { 168 throw new UnsupportedOperationException(); 169 } 170 171 @Override 172 public long getMemoryFree() throws IOException, InterruptedException, UnsupportedOperationException { 173 throw new UnsupportedOperationException(); 174 } 175 176 @Override 177 public long getMemoryShared() throws IOException, InterruptedException, UnsupportedOperationException { 178 throw new UnsupportedOperationException(); 179 } 180 181 @Override 182 public long getMemoryBuffers() throws IOException, InterruptedException, UnsupportedOperationException { 183 throw new UnsupportedOperationException(); 184 } 185 186 @Override 187 public long getMemoryCached() throws IOException, InterruptedException, UnsupportedOperationException { 188 throw new UnsupportedOperationException(); 189 } 190 191 @Override 192 public SystemInfo.BoardType getBoardType() throws IOException, InterruptedException, UnsupportedOperationException { 193 throw new UnsupportedOperationException(); 194 } 195 196 @Override 197 public float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException { 198 throw new UnsupportedOperationException(); 199 } 200 201 @Override 202 public float getCpuVoltage() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException { 203 throw new UnsupportedOperationException(); 204 } 205 206 @Override 207 public float getMemoryVoltageSDRam_C() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException { 208 throw new UnsupportedOperationException(); 209 } 210 211 @Override 212 public float getMemoryVoltageSDRam_I() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException { 213 throw new UnsupportedOperationException(); 214 } 215 216 @Override 217 public float getMemoryVoltageSDRam_P() throws IOException, InterruptedException, NumberFormatException, UnsupportedOperationException { 218 throw new UnsupportedOperationException(); 219 } 220 221 @Override 222 public boolean getCodecH264Enabled() throws IOException, InterruptedException, UnsupportedOperationException { 223 throw new UnsupportedOperationException(); 224 } 225 226 @Override 227 public boolean getCodecMPG2Enabled() throws IOException, InterruptedException, UnsupportedOperationException { 228 throw new UnsupportedOperationException(); 229 } 230 231 @Override 232 public boolean getCodecWVC1Enabled() throws IOException, InterruptedException, UnsupportedOperationException { 233 throw new UnsupportedOperationException(); 234 } 235 236 @Override 237 public long getClockFrequencyArm() throws IOException, InterruptedException, UnsupportedOperationException { 238 throw new UnsupportedOperationException(); 239 } 240 241 @Override 242 public long getClockFrequencyCore() throws IOException, InterruptedException, UnsupportedOperationException { 243 throw new UnsupportedOperationException(); 244 } 245 246 @Override 247 public long getClockFrequencyH264() throws IOException, InterruptedException, UnsupportedOperationException { 248 throw new UnsupportedOperationException(); 249 } 250 251 @Override 252 public long getClockFrequencyISP() throws IOException, InterruptedException, UnsupportedOperationException { 253 throw new UnsupportedOperationException(); 254 } 255 256 @Override 257 public long getClockFrequencyV3D() throws IOException, InterruptedException, UnsupportedOperationException { 258 throw new UnsupportedOperationException(); 259 } 260 261 @Override 262 public long getClockFrequencyUART() throws IOException, InterruptedException, UnsupportedOperationException { 263 throw new UnsupportedOperationException(); 264 } 265 266 @Override 267 public long getClockFrequencyPWM() throws IOException, InterruptedException, UnsupportedOperationException { 268 throw new UnsupportedOperationException(); 269 } 270 271 @Override 272 public long getClockFrequencyEMMC() throws IOException, InterruptedException, UnsupportedOperationException { 273 throw new UnsupportedOperationException(); 274 } 275 276 @Override 277 public long getClockFrequencyPixel() throws IOException, InterruptedException, UnsupportedOperationException { 278 throw new UnsupportedOperationException(); 279 } 280 281 @Override 282 public long getClockFrequencyVEC() throws IOException, InterruptedException, UnsupportedOperationException { 283 throw new UnsupportedOperationException(); 284 } 285 286 @Override 287 public long getClockFrequencyHDMI() throws IOException, InterruptedException, UnsupportedOperationException { 288 throw new UnsupportedOperationException(); 289 } 290 291 @Override 292 public long getClockFrequencyDPI() throws IOException, InterruptedException, UnsupportedOperationException { 293 throw new UnsupportedOperationException(); 294 } 295}