Multipurpose Internet Mai

本文描述了一个Java项目,目标是创建一个程序,用于检测用户数据文件的异常,包括检查文件扩展与MIME类型的匹配、内容完整性分析等。项目分为两部分,首先单个文件处理,然后扩展到目录及子目录。报告要求包括UML类图和详细的工作评估。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


Files: extensions and MIME[ MIME: Multipurpose Internet Mail Extensions] type
Object Oriented Programming & Java project

Goals

The POO - Java module project makes it possible to implement the main elements of the content of the module as part of the design of a small application. The work is to be done in pairs (exceptionally alone, for special situations[ Case of students in Terminal control, AJAC or odd number of students on the whole promotion by example]).
Context of the project

A common belief is that the extension of a file determines its type: as long as the effective type of a file and its extension are consistent, this statement is true, for against as soon as the extension is no longer consistent with the content, it is necessary to rely on the MIME type to evaluate a file (this is generally the case for content exchanges multimedia via mail or the way files are processed by browsers when visit a web page). Under Linux, the command "file" in command line allows to know the MIME type of a file.
The objective of the project is to create a small application allowing to detect anomalies on data files[ We will not consider the analysis of programs (of type .exe, .jar, .class, etc.).] of the user, so either to check a specific file (detection of empty files, detection of inconsistency between extension and MIME type, in-depth analysis of content of a file), or to explore and analyze a set of files from a folder.
++

The main actions of your software are:
checking a machine file (based on the extension and MIME type of the file)
the complete exploration (a folder and all of its sub-folders) of a directory with verification of each file.
The validation of the extension and of the MIME type on the basis of a list of signatures to create (example: a file with extension ".html" and MIME type "text / html" should to start[ After possibly comments of type “<! -… ->”] with "<! DOCTYPE html>"; a script file with extension ".sh" and type MIME "application / x-shellscript" or "application / x-shell" should start[ After possibl

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值