Package com.lampa.smi

Class SmiReader


  • public class SmiReader
    extends java.lang.Object
    smi reader
    • Constructor Detail

      • SmiReader

        public SmiReader()
    • Method Detail

      • read

        public static NvidiaSmiLogType read()
                                     throws jakarta.xml.bind.JAXBException,
                                            javax.xml.stream.XMLStreamException
        read from system
        Returns:
        NvidiaSmiLogType
        Throws:
        jakarta.xml.bind.JAXBException - error parse xml
        javax.xml.stream.XMLStreamException - error reader
      • read

        public static NvidiaSmiLogType read​(java.io.InputStream inputStream)
                                     throws jakarta.xml.bind.JAXBException,
                                            javax.xml.stream.XMLStreamException
        read from input stream
        Parameters:
        inputStream - InputStream
        Returns:
        NvidiaSmiLogType
        Throws:
        jakarta.xml.bind.JAXBException - error parse xml
        javax.xml.stream.XMLStreamException - error reader
      • read

        public static NvidiaSmiLogType read​(java.io.File file)
                                     throws java.io.FileNotFoundException,
                                            jakarta.xml.bind.JAXBException,
                                            javax.xml.stream.XMLStreamException
        read from file
        Parameters:
        file - File
        Returns:
        NvidiaSmiLogType
        Throws:
        java.io.FileNotFoundException
        jakarta.xml.bind.JAXBException - error parse xml
        javax.xml.stream.XMLStreamException - error reader
      • read

        public static NvidiaSmiLogType read​(java.lang.String string)
                                     throws jakarta.xml.bind.JAXBException,
                                            javax.xml.stream.XMLStreamException
        read from string
        Parameters:
        string - xml
        Returns:
        NvidiaSmiLogType
        Throws:
        jakarta.xml.bind.JAXBException - error parse xml
        javax.xml.stream.XMLStreamException - error reader
      • read

        public static NvidiaSmiLogType read​(java.io.Reader reader)
                                     throws javax.xml.stream.XMLStreamException,
                                            jakarta.xml.bind.JAXBException
        read from io reader
        Parameters:
        reader - Reader
        Returns:
        NvidiaSmiLogType
        Throws:
        javax.xml.stream.XMLStreamException - error reader
        jakarta.xml.bind.JAXBException - error parse xml