import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Escher container records store other escher records as children.
return new ArrayList<EscherRecord>(_childRecords);
}
- /**
- * @return an iterator over the child records
- * @deprecated POI 3.16 beta 1. use iterator() or loop over the container record instead,
- * e.g. "for (EscherRecord r : container) ..."
- */
- @Removal(version="3.18")
- @Deprecated
- public Iterator<EscherRecord> getChildIterator() {
- return iterator();
- }
-
/**
* @return an iterator over the child records
*/
import java.util.LinkedList;
import java.util.List;
-import org.apache.poi.util.CodePageUtil;
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.LittleEndianByteArrayInputStream;
import org.apache.poi.util.LittleEndianConsts;
import org.apache.poi.util.POILogFactory;
import org.apache.poi.util.POILogger;
-import org.apache.poi.util.Removal;
/**
* Supports reading and writing of variant data.<p>
}
}
- /**
- * Turns a codepage number into the equivalent character encoding's
- * name.
- *
- * @param codepage The codepage number
- *
- * @return The character encoding's name. If the codepage number is 65001,
- * the encoding name is "UTF-8". All other positive numbers are mapped to
- * "cp" followed by the number, e.g. if the codepage number is 1252 the
- * returned character encoding name will be "cp1252".
- *
- * @exception UnsupportedEncodingException if the specified codepage is
- * less than zero.
- *
- * @deprecated POI 3.16 - use {@link CodePageUtil#codepageToEncoding(int)}
- */
- @Deprecated
- @Removal(version="3.18")
- public static String codepageToEncoding(final int codepage)
- throws UnsupportedEncodingException
- {
- return CodePageUtil.codepageToEncoding(codepage);
- }
-
-
/**
* Writes a variant value to an output stream. This method ensures that
* always a multiple of 4 bytes is written.<p>
==================================================================== */
package org.apache.poi.poifs.crypt;
-import org.apache.poi.util.Removal;
-
/**
* Used when checking if a key is valid for a document
*/
return spinCount;
}
- /**
- * @deprecated POI 3.16 beta 1. use {@link #getChainingMode()}
- */
- @Removal(version="3.18")
- public int getCipherMode() {
- return chainingMode.ecmaId;
- }
-
- /**
- * @deprecated POI 3.16 beta 1. use {@link #getCipherAlgorithm()}
- */
- public int getAlgorithm() {
- return cipherAlgorithm.ecmaId;
- }
-
public byte[] getEncryptedKey() {
return encryptedKey;
}