Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions api/src/main/java/jakarta/activation/MimetypesFileTypeMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public class MimetypesFileTypeMap extends FileTypeMap {
/*
* We manage a collection of databases, searched in order.
*/
private MimeTypeRegistry[] DB;
private static final int PROG = 0; // programmatically added entries
protected MimeTypeRegistry[] DB;
protected static final int PROG = 0; // programmatically added entries

private static final String defaultType = "application/octet-stream";
protected static final String defaultType = "application/octet-stream";

private static final String confDir;
protected static String confDir;

static {
String dir = null;
Expand Down Expand Up @@ -148,7 +148,7 @@ public MimetypesFileTypeMap() {
/**
* Load from the named resource.
*/
private MimeTypeRegistry loadResource(String ... names) {
protected MimeTypeRegistry loadResource(String ... names) {
for (String name : names) {
InputStream clis = null;
try {
Expand Down Expand Up @@ -188,7 +188,7 @@ private MimeTypeRegistry loadResource(String ... names) {
/**
* Load all of the named resource.
*/
private void loadAllResources(Vector<MimeTypeRegistry> v, String ... names) {
protected void loadAllResources(Vector<MimeTypeRegistry> v, String ... names) {
boolean anyLoaded = false;
for (String name : names) {
try {
Expand Down Expand Up @@ -270,7 +270,7 @@ private void loadAllResources(Vector<MimeTypeRegistry> v, String ... names) {
/**
* Load the named file.
*/
private MimeTypeRegistry loadFile(String name) {
protected MimeTypeRegistry loadFile(String name) {
MimeTypeRegistry mtf = null;

try {
Expand Down Expand Up @@ -403,7 +403,7 @@ public synchronized String getContentType(String filename) {
return defaultType;
}

private MimeTypeRegistryProvider getImplementation() {
protected MimeTypeRegistryProvider getImplementation() {
return FactoryFinder.find(MimeTypeRegistryProvider.class);
}

Expand Down