資源簡介
代碼片段和文件信息
package?com.dtl.turing.utils;
/**
?*?@Author?50244
?**/
/*
?*?Copyright?(c)?2012?2016?Oracle?and/or?its?affiliates.?All?rights?reserved.
?*?DO?NOT?ALTER?OR?REMOVE?COPYRIGHT?NOTICES?OR?THIS?FILE?HEADER.
?*
?*?This?code?is?free?software;?you?can?redistribute?it?and/or?modify?it
?*?under?the?terms?of?the?GNU?General?Public?License?version?2?only?as
?*?published?by?the?Free?Software?Foundation.??Oracle?designates?this
?*?particular?file?as?subject?to?the?“Classpath“?exception?as?provided
?*?by?Oracle?in?the?LICENSE?file?that?accompanied?this?code.
?*
?*?This?code?is?distributed?in?the?hope?that?it?will?be?useful?but?WITHOUT
?*?ANY?WARRANTY;?without?even?the?implied?warranty?of?MERCHANTABILITY?or
?*?FITNESS?FOR?A?PARTICULAR?PURPOSE.??See?the?GNU?General?Public?License
?*?version?2?for?more?details?(a?copy?is?included?in?the?LICENSE?file?that
?*?accompanied?this?code).
?*
?*?You?should?have?received?a?copy?of?the?GNU?General?Public?License?version
?*?2?along?with?this?work;?if?not?write?to?the?Free?Software?Foundation
?*?Inc.?51?Franklin?St?Fifth?Floor?Boston?MA?02110-1301?USA.
?*
?*?Please?contact?Oracle?500?Oracle?Parkway?Redwood?Shores?CA?94065?USA
?*?or?visit?www.oracle.com?if?you?need?additional?information?or?have?any
?*?questions.
?*/
import?java.io.FilterOutputStream;
import?java.io.InputStream;
import?java.io.IOException;
import?java.io.OutputStream;
import?java.nio.ByteBuffer;
import?java.nio.charset.StandardCharsets;
import?java.util.Arrays;
import?java.util.objects;
/**
?*?This?class?consists?exclusively?of?static?methods?for?obtaining
?*?encoders?and?decoders?for?the?base64?encoding?scheme.?The
?*?implementation?of?this?class?supports?the?following?types?of?base64
?*?as?specified?in
?*?RFC?4648?and
?*?RFC?2045.
?*
?*?
?*?- Basic
?*??Uses?“The?base64?Alphabet“?as?specified?in?Table?1?of
?*?????RFC?4648?and?RFC?2045?for?encoding?and?decoding?operation.
?*?????The?encoder?does?not?add?any?line?feed?(line?separator)
?*?????character.?The?decoder?rejects?data?that?contains?characters
?*?????outside?the?base64?alphabet.
?*
?*?- URL?and?Filename?safe
?*??Uses?the?“URL?and?Filename?safe?base64?Alphabet“?as?specified
?*?????in?Table?2?of?RFC?4648?for?encoding?and?decoding.?The
?*?????encoder?does?not?add?any?line?feed?(line?separator)?character.
?*?????The?decoder?rejects?data?that?contains?characters?outside?the
?*?????base64?alphabet.
?*
?*?- MIME
?*??Uses?the?“The?base64?Alphabet“?as?specified?in?Table?1?of
?*?????RFC?2045?for?encoding?and?decoding?operation.?The?encoded?output
?*?????must?be?represented?in?lines?of?no?more?than?76?characters?each
?*?????and?uses?a?carriage?return?{@code?‘\r‘}?followed?immediately?by
?*?????a?linefeed?{@code?‘\n‘}?as?th
- 上一篇:Java學生成績管理系統57584
- 下一篇:MCP 我的世界源碼1.12
評論
共有 條評論