<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                Spring的資源接口旨在成為抽象訪問低級資源的更強大的接口。 ~~~java public interface Resource extends InputStreamSource { boolean exists(); boolean isOpen(); URL getURL() throws IOException; File getFile() throws IOException; Resource createRelative(String relativePath) throws IOException; String getFilename(); String getDescription(); } ~~~ ~~~ java public interface InputStreamSource { InputStream getInputStream() throws IOException; } ~~~ Resource接口的一些重要方法如下: * `getInputStream()`:定位并打開資源,返回一個InputStream以便從資源讀取。 預計每次調用都會返回一個新的InputStream。 調用方有責任關閉該流. * `exists()`:返回一個布爾值,指示該資源實際上是否以物理形式存在. * `isOpen()`:返回一個布爾值,指示此資源是否已經具有打開流的句柄。 如果為true,則不能多次讀取InputStream,并且只能讀取一次,然后關閉以避免資源泄漏。 除了InputStreamResource之外,對于所有通常的資源實現都將返回false。 * `getDescription()`:返回此資源的描述,用于處理資源時的錯誤輸出。 這通常是完全限定的文件名或資源的實際URL。 其他方法允許您獲取表示資源的實際URL或File對象(如果底層實現兼容并支持該功能). 值得注意的是,`Resouce`抽象并不取代功能:它盡可能包裝它。 例如,`UrlResource`包裝一個URL,并使用包裝的`URL`來完成其工作。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看